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

Merge upstream changes #269

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Enums to uppercase
georgeyiasemis committed Mar 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 97d8909c88fc88f6aee354aef4ee44864532f27e
4 changes: 2 additions & 2 deletions direct/algorithms/mri_algorithms.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def __init__(
kernel_size: int = 6,
crop: float = 0.95,
max_iter: int = 100,
kspace_key: KspaceKey = KspaceKey.masked_kspace,
kspace_key: KspaceKey = KspaceKey.MASKED_KSPACE,
):
"""Inits :class:`EstimateSensitivityMap`.
@@ -54,7 +54,7 @@ def __init__(
max_iter: int, optional
Power method iterations. Default: 30.
kspace_key: KspaceKey
K-space key. Default KspaceKey.masked_kspace.
K-space key. Default KspaceKey.MASKED_KSPACE.
"""
self.backward_operator = backward_operator
self.threshold = threshold
6 changes: 2 additions & 4 deletions direct/data/datasets_config.py
Original file line number Diff line number Diff line change
@@ -32,12 +32,10 @@ class SensitivityMapEstimationTransformConfig(BaseConfig):

@dataclass
class RandomAugmentationTransformsConfig(BaseConfig):
random_rotation: bool = False
random_rotation_degrees: Tuple[int, ...] = (-90, 90)
random_rotation_probability: Optional[float] = 0.5
random_flip: bool = False
random_rotation_probability: float = 0.0
random_flip_type: Optional[str] = "random"
random_flip_probability: Optional[float] = 0.5
random_flip_probability: float = 0.0


@dataclass
Loading