Skip to content

Commit

Permalink
run black 24.
Browse files Browse the repository at this point in the history
ensure new line between module docstring and code.
  • Loading branch information
paquiteau committed Jan 26, 2024
1 parent 5f6c79a commit 48d80ff
Show file tree
Hide file tree
Showing 30 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
list see the documentation:
https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down
1 change: 1 addition & 0 deletions examples/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
https://stackoverflow.com/questions/56807698/how-to-run-script-as-pytest-test
"""

from pathlib import Path
import runpy
import pytest
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/density/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Density compensation methods."""

from .geometry_based import voronoi, voronoi_unique, cell_count
from .nufft_based import pipe
from .utils import get_density
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/density/geometry_based.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Compute density compensation weights using geometry-based methods."""

import numpy as np
from scipy.spatial import Voronoi

Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/density/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for density compensation."""

from functools import wraps

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion src/mrinufft/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Input/Output module for trajectories and data."""


from .cfl import traj2cfl, cfl2traj
from .nsp import read_trajectory, write_trajectory

Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/io/cfl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
----------
BART Toolbox: https://bart-doc.readthedocs.io/en/latest/data.html
"""

from pathlib import Path
import os
import mmap
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:author: Pierre-Antoine Comby
"""

from __future__ import annotations
from abc import ABC, abstractmethod
from functools import partial
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/interfaces/_cupy_kernels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Kernel function for GPUArray data."""

from .utils.gpu_utils import get_maxThreadBlock, CUPY_AVAILABLE

update_density_kernel = lambda *args, **kwargs: None # noqa: E731
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/interfaces/sigpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
The SigPy NUFFT is fully implemented in Python.
"""

import warnings

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/interfaces/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for interfaces."""

from .utils import (
check_error,
check_size,
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/interfaces/utils/gpu_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils for GPU."""

import numpy as np
from pathlib import Path
from hashlib import md5
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/off_resonnance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Based on the implementation of Guillaume Daval-Frérot in pysap-mri:
https://github.com/CEA-COSMIC/pysap-mri/blob/master/mri/operators/fourier/orc_wrapper.py
"""

import numpy as np

from .base import FourierOperatorBase
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/operators/stacked.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Stacked Operator for NUFFT."""

import warnings

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Collection of trajectories and tools used for non-Cartesian MRI."""

from .trajectory2D import (
initialize_2D_radial,
initialize_2D_spiral,
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/display.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Display function for trajectories."""

import itertools

import matplotlib as mpl
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions to manipulate trajectories."""

import numpy as np

from .utils import (
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/trajectory2D.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""2D trajectory initializations."""

import numpy as np

from .utils import (
Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/trajectory3D.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""3D Trajectory initialization functions."""

import numpy as np
import numpy.linalg as nl

Expand Down
1 change: 1 addition & 0 deletions src/mrinufft/trajectories/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for the trajectory design."""

import numpy as np

from enum import Enum, EnumMeta
Expand Down
1 change: 1 addition & 0 deletions tests/case_trajectories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Trajectories cases we want to test."""

import numpy as np
import scipy as sp

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration for pytest."""

import pytest

from mrinufft.operators import FourierOperatorBase, check_backend, list_backends
Expand Down
1 change: 0 additions & 1 deletion tests/helpers/asserts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Utils for tests."""


import numpy as np
import numpy.testing as npt
import scipy as sp
Expand Down
1 change: 1 addition & 0 deletions tests/helpers/factories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Useful factories to create matching data for an operator."""

from functools import wraps
import numpy as np
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Only finufft and cufinufft support batch computations.
"""

import numpy as np
import numpy.testing as npt
from pytest_cases import parametrize_with_cases, parametrize, fixture
Expand Down
1 change: 0 additions & 1 deletion tests/test_bindings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test for mrinufft interfaces."""


import mrinufft
import pytest

Expand Down
1 change: 0 additions & 1 deletion tests/test_density.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test the density compensation methods."""


import numpy as np
import numpy.testing as npt
from pytest_cases import fixture, parametrize, parametrize_with_cases
Expand Down
1 change: 1 addition & 0 deletions tests/test_interfaces.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the interfaces module."""

import numpy as np
from pytest_cases import parametrize_with_cases, parametrize, fixture
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the trajectories io module."""

import numpy as np
from mrinufft.io import read_trajectory, write_trajectory
from mrinufft.trajectories.trajectory2D import initialize_2D_radial
Expand Down
1 change: 1 addition & 0 deletions tests/test_ndft.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for the NDFT implementations."""

import numpy as np
import scipy as sp
from pytest_cases import parametrize_with_cases
Expand Down

0 comments on commit 48d80ff

Please sign in to comment.