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

Cleaning #564

Merged
Merged

Conversation

camillebrianceau
Copy link
Collaborator

@camillebrianceau camillebrianceau commented Apr 25, 2024

  • Creation of an Enum file.
  • Adaptation of typehint and CLI to the Enum file,
  • Creation of Gradient class

Next PR : creation of config and adaptation of CLi file for the prepare-data pipeline and addition of unittests

Copy link
Member

@NicolasGensollen NicolasGensollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @camillebrianceau ! Looking good !
I made a few small suggestions. Feel free to take or leave.

clinicadl/generate/generate_param/option.py Outdated Show resolved Hide resolved
clinicadl/generate/generate_param/option.py Outdated Show resolved Hide resolved
clinicadl/generate/generate_param/option.py Outdated Show resolved Hide resolved
clinicadl/generate/generate_param/option_hypometabolic.py Outdated Show resolved Hide resolved
clinicadl/interpret/interpret_param.py Outdated Show resolved Hide resolved
clinicadl/predict/predict_config.py Outdated Show resolved Hide resolved
if tracer is not None:
tracer = Tracer(tracer)

if modality not in Modality:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because you already did modality = Modality(modality), you know that modality is a valid value. No need to check.

clinicadl/utils/clinica_utils.py Outdated Show resolved Hide resolved
clinicadl/utils/enum.py Outdated Show resolved Hide resolved
@camillebrianceau camillebrianceau added the refactoring ClinicaDL refactoring 2024 label Apr 29, 2024
Copy link
Collaborator

@thibaultdvx thibaultdvx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@camillebrianceau camillebrianceau merged commit e1e5081 into aramis-lab:refactoring Apr 29, 2024
13 checks passed
@camillebrianceau camillebrianceau deleted the cb_cleaning_refacto branch April 29, 2024 12:24
camillebrianceau added a commit to camillebrianceau/clinicadl that referenced this pull request May 29, 2024
* first commirt to clean last PR

* add enum file + adapt prepare-data
camillebrianceau added a commit to camillebrianceau/clinicadl that referenced this pull request May 30, 2024
* first commirt to clean last PR

* add enum file + adapt prepare-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring ClinicaDL refactoring 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants