-
Notifications
You must be signed in to change notification settings - Fork 35
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
Ukbb mri neck to knee ozery #155
base: ukbb_mri_neck_to_knee
Are you sure you want to change the base?
Ukbb mri neck to knee ozery #155
Conversation
…eid_*_<visit>_0", since in kidney MRI there could be 2 zip files per patient
…-ml into ukbb_mri_neck_to_knee_ozery � Conflicts: � examples/fuse_examples/imaging/classification/ukbb_prostate/runner.py
…fuse-med-ml into ukbb_mri_neck_to_knee_ozery
…-ml into ukbb_mri_neck_to_knee_ozery
…to ukbb_mri_neck_to_knee_ozery � Conflicts: � examples/fuse_examples/imaging/classification/ukbb_prostate/cohort_and_label_def.py � examples/fuse_examples/imaging/classification/ukbb_prostate/conf/config_prostate_cancer.yaml � examples/fuse_examples/imaging/classification/ukbb_prostate/conf/config_prostatectomy.yaml � examples/fuse_examples/imaging/classification/ukbb_prostate/runner.py � fuseimg/datasets/ukbb_neck_to_knee.py
…fuse-med-ml into ukbb_mri_neck_to_knee_ozery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Itai!
I should review just the files if fuse core (under fuse dir), right?
I think that those modifications can be very useful - let's make them a bit more generic though.
@@ -40,6 +40,7 @@ def __init__( | |||
dynamic_pipeline: Optional[PipelineDefault] = None, | |||
cacher: Optional[SamplesCacher] = None, | |||
allow_uncached_sample_morphing: bool = False, | |||
always_return_dict = True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's changed the allow_uncached_sample_morphing to mode instead of boolean.
We can have a mode that goes over all the samples to filter Nones or to split samples.
And a mode that skips it and returns whatever the pipeline generates.
See if you can come up with good names for the argument and the modes.
@@ -100,7 +100,7 @@ def _collect_values_to_list(self, samples: List[str], key: str) -> Tuple[List, b | |||
if self._raise_error_key_missing: | |||
raise Exception(f"Error: key {key} does not exist in sample {index}: {sample}") | |||
else: | |||
value = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that your use-case deals with a sample that is None and missing a key in one of the samples.
Cann you comment about it?
No description provided.