You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add temporary upper bounds on NumPy and SciPy to pass tests (#2592)
* Add upper bound of SciPy v1.16.0 as there are numerical differences compared to
v1.15.x and convergence issues that can lead to 'Singular matrix E in LSQ subproblem'.
- c.f. #2593
* Add upper bound of NumPy v2.0 to the PyTorch extra as PyTorch is currently
incompatible with NumPy v2.0.
- c.f. pytorch/pytorch#157973
* Add try-except for from `click.testing.CliRunner` to work with versions of Click
older than v8.2.0.
* Use typing.cast to have all NumPy backend operations be cast to type
numpy.typing.ArrayLike to satisfy mypy.
* Add pytest fixture to disable CUDA acceleration by default for GPU enabled machines
so that the tests will run in CPU mode by default.
- Add `--enable-cuda` flag that can be passed to let CUDA backends be turned on.
* Remove `pyhf` CLI command with no arguments from Docker image test as it results
in an exit code of 2.
* Add ignores to filterwarning for Click, papermill, and PyTorch.
- DeprecationWarning: 'MultiCommand' is deprecated and will be removed in Click 9.0.
Use 'Group' instead.
- DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
given by the platformdirs library. To remove this warning and see the appropriate
new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then
run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core`
v6.
- DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for
removal in a future version. Use timezone-aware objects to represent datetimes
in UTC: datetime.datetime.now(datetime.UTC).
- DeprecationWarning: In future, it will be an error for 'np.bool' scalars to be
interpreted as an index.
- DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so
passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword
arguments.
- c.f. https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword
Co-authored-by: Giordon Stark <[email protected]>
"ignore:Skipping device Apple Paravirtual device that does not support Metal 2.0:UserWarning", # Can't fix given hardware/virtualized device
230
236
'ignore:Type google._upb._message.[A-Z]+ uses PyType_Spec with a metaclass that has custom:DeprecationWarning', # protobuf via tensorflow
231
237
"ignore:jax.xla_computation is deprecated. Please use the AOT APIs:DeprecationWarning", # jax v0.4.30
238
+
"ignore:'MultiCommand' is deprecated and will be removed in Click 9.0. Use 'Group' instead.:DeprecationWarning", # Click
239
+
"ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning", # papermill
240
+
"ignore:datetime.datetime.utcnow\\(\\) is deprecated:DeprecationWarning", # papermill
241
+
"ignore:In future, it will be an error for 'np.bool' scalars to be interpreted as an index:DeprecationWarning", # PyTorch
242
+
"ignore:__array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.:DeprecationWarning", # PyTorch interacting with NumPy
0 commit comments