Skip to content

Commit

Permalink
Merge pull request #90 from European-XFEL/scipy-optional
Browse files Browse the repository at this point in the history
Make scipy an optional dependency
  • Loading branch information
takluyver authored Aug 25, 2021
2 parents 1fb2aa9 + e4dc873 commit 1ab6100
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/dependabot/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ numpy<1.22.0
Pillow==8.3.1
pyparsing==2.4.7
python-dateutil==2.8.2
scipy<1.8.0
six==1.16.0
xarray<0.20.0
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ to use in other environments with Python 3.6 or later:

If you get a permissions error, add the `--user` flag to that command.

There is one optional feature: install `extra_geom[interpolate]` to use
the `position_modules_interpolate` method (slow).



Contributing
===========
Expand Down
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ to use in other environments with Python 3.6 or later::

If you get a permissions error, add the ``--user`` flag to that command.

There is one optional feature: install ``extra_geom[interpolate]`` to use
the :meth:`~.position_modules_interpolate` method (slow).

Documentation contents
----------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def find_version(*parts):
'h5py>=2.7.1',
'matplotlib',
'numpy',
'scipy',
],
extras_require={
'interpolate': ['scipy'],
'docs': [
'sphinx',
'nbsphinx',
Expand Down

0 comments on commit 1ab6100

Please sign in to comment.