build: disable dtcwt example and test to be able to support numpy v2 in CI and doc#684
Conversation
|
@cako I noticed that we have the following note in the Installation section for PyTensor: From a quick look at the documentation and changelogs of PyTensor and PyMC it seems to me that this comment is outdated and they have started supporting NumPy 2, do you agree? If so I am going to take this out? And do you agree in general with my changes (we did not pay attention to the environments for long time so I felt things were starting to get a bit outdated 😉 ) |
|
@cako perfect! Then let me remove the comment about numpy v1 add these as the minimum versions in requirement/environment files 😀 |
|
For the record: seems like that if I change the version of For now, I revert back the environment files to |
pytensor and pymc versions in environment files are reverted to the previous setting as the changes that made the versions more restrictive led to some issues with devito (likely due to a different clang compiler being installed.
This PR is primarily focused on removing
dtcwtfrom all environment/requirement files as by not supporting numpy v2 it was making it very hard to have a working local environment on ARM MacOSX (and like this is going to be the same soon for Linux).Similarly, a skip
@pytest.mark.skipif(int(np_version[0]) >= 2, reason="dtcwt does not support numpy v2")is added to thetest_dtcwt, currently disabling any test for this operator.Finally RTD is now using python 3.11 and numpy v2 and the
plot_dtcwtexample is currently disabled (we still keep the file in the repository in casedtcwtstarts to support numpy v2, so we will be able to bring it back...).Additionally, all requirements/environments files have been slightly revamped with the following changes:
python>=3.11is now the new default in environment filesnumpy>=2.0.0andscipy>=1.13.0(the first version supporting numpy2) are now the new default in environment/requirement filestorchis now installed via pip and not conda in environment files as this is now the reccomended way (https://pytorch.org/get-started/locally/)Jaxis also now installed via pip and not conda in environment files