Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Add a scipy version restriction after encountering terrible errors in a plato build. 

The culprit was a method call somewhere in ```Objective.py``` with an error similar to 

```terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  TypeError: primal and tangent arguments to jax.jvp do not match; dtypes must be equal, or in case of int/bool primal dtype the tangent dtype must be float0.Got primal dtype float64 and so expected tangent dtype float64, but got tangent dtype int8 instead.
__notes__ (len=1):```
  • Loading branch information
cmhamel authored Jan 7, 2025
1 parent 04b7883 commit f92f8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'matplotlib', # this is not strictly necessary
'metis',
'netcdf4',
'scipy',],
'scipy==1.14.1',],
#tests_require=[], # could put chex and pytest here
extras_require={'sparse': ['scikit-sparse'],
'test': ['pytest', 'pytest-cov', 'pytest-xdist'],
Expand Down

0 comments on commit f92f8c5

Please sign in to comment.