Skip to content

Commit dd449e9

Browse files
committed
ruff
1 parent 54671dd commit dd449e9

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

examples/example_gpu_anat_spirals_slice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# %%
1414

1515
# Imports
16-
import numpy as np
1716
import matplotlib.pyplot as plt
1817

1918
from snake.core.simulation import SimConfig, default_hardware, GreConfig

src/snake/core/engine/cartesian.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Acquisition engine for Cartesian trajectories."""
22

3-
from typing import Any
43
from collections.abc import Sequence
54
from copy import deepcopy
65

src/snake/core/sampling/samplers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Samplers generate kspace trajectories."""
22

33
from __future__ import annotations
4-
from typing import Literal
54
import ismrmrd as mrd
65
import numpy as np
76
from numpy.typing import NDArray
@@ -32,7 +31,8 @@ class NonCartesianAcquisitionSampler(BaseSampler):
3231
obs_time_ms: int
3332
Time spent to acquire a single shot
3433
in_out: bool
35-
If true, the trajectory is acquired with a double join pattern from/to the periphery
34+
If true, the trajectory is acquired with a double join pattern
35+
from/to the periphery
3636
ndim: int
3737
Number of dimensions of the trajectory (2 or 3)
3838
"""
@@ -198,7 +198,8 @@ class LoadTrajectorySampler(NonCartesianAcquisitionSampler):
198198
obs_time_ms: int
199199
Time spent to acquire a single shot
200200
in_out: bool
201-
If true, the trajectory is acquired with a double join pattern from/to the periphery
201+
If true, the trajectory is acquired with a double join pattern
202+
from/to the periphery
202203
"""
203204

204205
__sampler_name__ = "load-trajectory"

src/snake/core/simulation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def _repr_html_(obj: Any, vertical: bool = True) -> str:
2828
'<caption style="border:1px solid lightgray;">'
2929
f"<strong>{class_name}</strong></caption>"
3030
]
31-
from typing import get_type_hints
3231
from dataclasses import fields
3332

3433
resolved_hints = obj.__annotations__

src/snake/mrd_utils/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def engine_model(self) -> str:
218218

219219
@property
220220
def slice_2d(self) -> bool:
221-
"""Is the acquisiton run on 2D slices."""
221+
"""Is the acquisition run on 2D slices."""
222222
return bool(self.header.userParameters.userParameterString[1].value)
223223

224224
#############

src/snake/toolkit/cli/acquisition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def acquisition(cfg: ConfigSNAKE) -> None:
5151
kwargs = {}
5252
if engine_klass.__engine_name__ == "NUFFT":
5353
kwargs["nufft_backend"] = cfg.engine.nufft_backend
54-
engine = engine_klass(model=cfg.engine.model, snr=cfg.engine.snr, slice_2d=cfg.engine.slice_2d) # type: ignore
54+
engine = engine_klass(
55+
model=cfg.engine.model, snr=cfg.engine.snr, slice_2d=cfg.engine.slice_2d
56+
) # type: ignore
5557

5658
engine(
5759
cfg.filename,

0 commit comments

Comments
 (0)