Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CheckDataMixin #666

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mrpro/data/KTrajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from mrpro.data.enums import TrajType
from mrpro.data.MoveDataMixin import MoveDataMixin
from mrpro.data.SpatialDimension import SpatialDimension
from mrpro.utils import reduce_repeat
from mrpro.utils import remove_repeat
from mrpro.utils.summarize_tensorvalues import summarize_tensorvalues


Expand Down Expand Up @@ -54,7 +54,7 @@ def as_any_float(tensor: torch.Tensor) -> torch.Tensor:

if self.repeat_detection_tolerance is not None:
kz, ky, kx = (
as_any_float(reduce_repeat(tensor, self.repeat_detection_tolerance))
as_any_float(remove_repeat(tensor, self.repeat_detection_tolerance))
for tensor in (self.kz, self.ky, self.kx)
)
# use of setattr due to frozen dataclass
Expand Down
72 changes: 0 additions & 72 deletions src/mrpro/data/ReduceRepeatMixin.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/mrpro/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
from mrpro.data.QHeader import QHeader
from mrpro.data.Rotation import Rotation
from mrpro.data.SpatialDimension import SpatialDimension
from mrpro.data.ReduceRepeatMixin import ReduceRepeatMixin

__all__ = [
"AcqIdx",
"AcqInfo",
Expand All @@ -38,7 +36,6 @@
"MoveDataMixin",
"QData",
"QHeader",
"ReduceRepeatMixin",
"Rotation",
"SpatialDimension",
"acq_filters",
Expand Down
10 changes: 3 additions & 7 deletions src/mrpro/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,18 @@
from mrpro.utils import unit_conversion
from mrpro.utils.fill_range import fill_range_
from mrpro.utils.smap import smap
from mrpro.utils.indexing import Indexer
from mrpro.utils.reduce_repeat import reduce_repeat
from mrpro.utils.remove_repeat import remove_repeat
from mrpro.utils.zero_pad_or_crop import zero_pad_or_crop
from mrpro.utils.split_idx import split_idx
from mrpro.utils.reshape import broadcast_right, unsqueeze_left, unsqueeze_right, reduce_view, reshape_broadcasted, ravel_multi_index, unsqueeze_tensors_left, unsqueeze_tensors_right, unsqueeze_at, unsqueeze_tensors_at
from mrpro.utils.TensorAttributeMixin import TensorAttributeMixin
from mrpro.utils.zero_pad_or_crop import zero_pad_or_crop

__all__ = [
"Indexer",
"TensorAttributeMixin",
"broadcast_right",
"fill_range_",
"ravel_multi_index",
"reduce_repeat",
"reduce_view",
"remove_repeat",
"reshape_broadcasted",
"slice_profiles",
"smap",
Expand All @@ -34,4 +30,4 @@
"unsqueeze_tensors_left",
"unsqueeze_tensors_right",
"zero_pad_or_crop"
]
]
Loading
Loading