-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What would you like to see added in this software?
PR #174 finished the implementation of PET-related data, model and estimator classes. The implementations deviated from the base class implementations or did not inherit base class implementations:
- The
data.PETclass implements alofo_splitmethod. However, there is alovo_splitfunction in thesplittingmodule. The data splitting function used by PET should dwell insplittingand the necessary refactoring/reconciling should take place so that it is sufficiently generic so as to be used by any modality. - The
data.PET.to_niftifunction deviates from the base class signature, and thus, when adding type hinting was attempted in PR STY: Add type hints to PET-related classes and functions #189,mypycomplained about this. So the signature should be reconciled with the one from the base class or the latter should be adapted. - The statement seems to assume some HDF5 file structure that may not be common across modalities. This should be harmonized.
nifreeze/src/nifreeze/data/pet.py
Line 133 in d2def7a
root = in_file["/0"] - The
PETEstimatorclass generates the train/test splits internally. In general, handling the train/test splits should be done by some manager class that is common to all modalities, and thus, should be taken out of thePETEstimator.runfunction:nifreeze/src/nifreeze/estimator.py
Line 252 in d2def7a
train_dataset = PET( - The correction method should probably be made configurable, and default to/offer only the B-Spline method for now. Also, the method itself should probably be refactored into a separate function/class/module.
Do you have any interest in helping implement the feature?
Yes
Additional information / screenshots
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog