Skip to content

Commit

Permalink
Enums to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Mar 24, 2024
1 parent b56a724 commit 97d8909
Show file tree
Hide file tree
Showing 16 changed files with 272 additions and 221 deletions.
4 changes: 2 additions & 2 deletions direct/algorithms/mri_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions direct/data/datasets_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 97d8909

Please sign in to comment.