You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All these patterns could also be better represented with dataclasses since they have a defined structure. Something like that would already enrich the code:
Also, a lot of these patterns could be factorized in functions taking some parameters (the hemisphere, the name of the atlas, the pet tracer...) instead of being copy-pasted.
The module
clinica.utils.input_files
defines a long list of dictionaries which are used as query patterns in theclinica_file_reader
functions.First of all, there are a lot of these objects which are not used in the code base. A few examples:
We clearly should get rid of them.
All these patterns could also be better represented with dataclasses since they have a defined structure. Something like that would already enrich the code:
Also, a lot of these patterns could be factorized in functions taking some parameters (the hemisphere, the name of the atlas, the pet tracer...) instead of being copy-pasted.
For example this
clinica/clinica/utils/input_files.py
Lines 51 to 61 in 954d4a9
could easily be factorized in:
The text was updated successfully, but these errors were encountered: