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

make scipy optional #25

Closed
orbeckst opened this issue Dec 11, 2015 · 3 comments · Fixed by #26
Closed

make scipy optional #25

orbeckst opened this issue Dec 11, 2015 · 3 comments · Fixed by #26
Assignees
Milestone

Comments

@orbeckst
Copy link
Member

scipy is not installed by setup.py but nevertheless scipy is imported in such a way that import gridData fails without scipy.

Make sure that import scipy does not prevent importing of the package and give a sensible error message if functionality requiring scipy is used (the interpolation).

@orbeckst orbeckst self-assigned this Dec 11, 2015
@orbeckst orbeckst added this to the 0.3 bugfixes milestone Dec 11, 2015
@orbeckst
Copy link
Member Author

See also MDAnalysis/mdanalysis#563 .

@kain88-de
Copy link
Member

We already do an interpolation when we initialize the Grid object. I haven't look to much into the actual logic of the Grid object so I don't know how easy it is to make this optional.

orbeckst added a commit that referenced this issue Dec 12, 2015
- moved scipy.ndimage into interpolation method of Grid; will only
  be needed when interpolation is required
- added build matrix tests with/without scipy
- decorated tests with dec.skipif(module_not_found('scipy')) (from MDAnalysis)
  (added module_not_found to test/__init__.py; this also means that the tests
  are included in the package)
- release as 0.3.2
- fixes #25
orbeckst added a commit that referenced this issue Dec 12, 2015
make scipy import optional (issue #25)
@orbeckst
Copy link
Member Author

I just made it optional and the tests pass.

Oliver Beckstein
email: [email protected]

Am Dec 11, 2015 um 16:22 schrieb kain88-de [email protected]:

We already do an interpolation when we initialize the Grid object. I haven't look to much into the actual logic of the Grid object so I don't know how easy it is to make this optional.


Reply to this email directly or view it on GitHub.

orbeckst added a commit to MDAnalysis/mdanalysis that referenced this issue Dec 12, 2015
- The new release 0.3.1 of GridDataFormats contains the fix for issue MDAnalysis/GridDataFormats#21
  which is needed to fix issue #544.
- The release 0.3.2 allows importing of gridData without scipy.ndimage present
  (MDAnalysis/GridDataFormats#25): this allows the minimal tests to pass
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 a pull request may close this issue.

2 participants