Open jhlegarreta opened 5 months ago
The base imports a module:
base
from importlib import import_module
within the __iinit__ method of the BaseModel class: https://github.com/nipreps/eddymotion/blob/main/src/eddymotion/model/base.py#L135
__iinit__
BaseModel
If that is done for performance reasons, would lazy loading help so that the import is put at the top of the file (if that is relevant)?
None.
main
Docker
Yes
No
Not applicable.
No response
This is intended to allow using virtually any DIPY model with a minimal boilerplate. I agree it delays errors if DIPY is not installed or in an incompatible version. That could be tested at the top, certainly.
What happened?
The
base
imports a module:within the
__iinit__
method of theBaseModel
class: https://github.com/nipreps/eddymotion/blob/main/src/eddymotion/model/base.py#L135If that is done for performance reasons, would lazy loading help so that the import is put at the top of the file (if that is relevant)?
What command did you use?
What version of the software are you running?
main
How are you running this software?
Docker
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Additional information / screenshots
No response