Skip to content

Commit

Permalink
Readability updates for preprocessing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aecelaya committed Sep 26, 2024
1 parent 13f223b commit 830af4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mist/preprocess_data/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ def preprocess_example(

# Put mask into standard space
mask = ants.reorient_image2(mask, "RAI")
mask.set_direction(np.eye(3))
mask.set_direction(
preprocessing_constants.PreprocessingConstants.RAI_ANTS_DIRECTION
)
mask = resample_mask(
mask,
labels=config["labels"],
Expand Down

0 comments on commit 830af4e

Please sign in to comment.