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

ENH: Improve importing optional packages and modules #195

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

jhlegarreta
Copy link
Contributor

Improve importing optional packages and modules:

  • Add helper classes and utils to take care of trying to import optional packages, and to provide meaningful information when such packages cannot be imported.
  • Add the corresponding tests.

Prefer using all lowercases for the flags that contain the package/module import success value.

Move the whitematteranalysis/utils.py module to the whitematteranalysis/utils/utils.py module, and remove the utils module import from whitematteranalysis/__init__.py to avoid module clashes.

Improve importing optional packages and modules:
- Add helper classes and utils to take care of trying to import optional
  packages, and to provide meaningful information when such packages
  cannot be imported.
- Add the corresponding tests.

Prefer using all lowercases for the flags that contain the
package/module import success value.

Move the `whitematteranalysis/utils.py` module to the
`whitematteranalysis/utils/utils.py` module, and remove the `utils`
module import from `whitematteranalysis/__init__.py`  to avoid module
clashes.
@jhlegarreta jhlegarreta force-pushed the ImproveImportingOptPackages branch from cf4a2ae to 09f78bc Compare November 30, 2023 17:49
@jhlegarreta jhlegarreta marked this pull request as ready for review November 30, 2023 22:20
@ljod ljod merged commit a647193 into SlicerDMRI:master Dec 7, 2023
10 checks passed
@jhlegarreta jhlegarreta deleted the ImproveImportingOptPackages branch December 7, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants