diff --git a/src/snkf/handlers/motion/utils.py b/src/snkf/handlers/motion/utils.py index ac0df6d..036eaf7 100644 --- a/src/snkf/handlers/motion/utils.py +++ b/src/snkf/handlers/motion/utils.py @@ -39,8 +39,9 @@ def motion_generator( Notes ----- The motion is generated by drawing from a normal distribution with standard - deviation for the 6 motion parameters (3 translations and 3 rotations, in this order) - Then the cumulative motion is computed by summing the motion at each frame. + deviation for the 6 motion parameters: 3 rotation (x,y,z) and 3 translations. + Then the cumulative motion is computed by summing the motion at each frame, to + derive the absolute displacement compared to the base reference. """ rng = validate_rng(rng) t_speeds = rng.normal(0, t_std, (n_frames, 3)) diff --git a/src/snkf/simulation/acquisition.py b/src/snkf/simulation/acquisition.py deleted file mode 100644 index 526cee2..0000000 --- a/src/snkf/simulation/acquisition.py +++ /dev/null @@ -1,30 +0,0 @@ -from typing import Any, Mapping - -import numpy as np -from np.typing import NDArray - - -class Acquisition: - "Container for Acquisition Data" - - def __init__(self): - self.kspace_data: NDArray = None - self.kspace_mask: NDArray = None - self.shot_order: NDArray = None - self.is_cartesian: bool = None - self.name = None - - self._shot_time: float = None - self._shot_frame_map: NDArray = None - self._group_n_shot: int = 1 - self._traj_name: str = "" - self._traj_params: Mapping[str, Any] = None - - def to_mrd_data(self, dset): - """Convert the k-space data to an MRD Acquisition.""" - - @property - def TR_ms(self): ... - - @property - def n_kspace_frame(self): ... diff --git a/src/snkf/simulation/lazy.py b/src/snkf/simulation/lazy.py index 44478cb..cd6982d 100644 --- a/src/snkf/simulation/lazy.py +++ b/src/snkf/simulation/lazy.py @@ -26,8 +26,8 @@ def reverse(func: Callable[[T, U], V]) -> Callable[[U, T], V]: def reversed_func(a: U, b: T) -> V: return func(b, a) - reversed_func.__doc__ = "Reversed argument form of %s" % func.__doc__ - reversed_func.__name__ = "reversed %s" % func.__name__ + reversed_func.__doc__ = f"Reversed argument form of {func.__doc__}" + reversed_func.__name__ = f"reversed {func.__name__}" return reversed_func