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

Upgrade to Numpy 2 #1462

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ RUN wget --quiet https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER

ENV PATH $PATH:$PWD/cmake-${CMAKE_VERSION}-linux-x86_64/bin/

# Copy the environment yaml to cache environment when possible
# Copy the environment yaml and requirements.txt to cache environment when possible
COPY environment.yml /code/timemachine/
COPY requirements.txt /code/timemachine/

WORKDIR /code/timemachine/

Expand All @@ -50,10 +51,6 @@ ENV CONDA_DEFAULT_ENV ${ENV_NAME}

WORKDIR /code/

# Copy the pip requirements to cache when possible
COPY requirements.txt /code/timemachine/
RUN pip install --no-cache-dir -r timemachine/requirements.txt

# NOTE: timemachine_ci must come before timemachine in the Dockerfile;
# otherwise, CI will try (and fail) to build timemachine to reach the
# timemachine_ci target
Expand Down
5 changes: 2 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ dependencies:
- python=3.12.8
- jax=0.4.28
- jaxlib=0.4.28=cpu*
# Include numpy/scipy to reduce the size of the Docker container
- numpy=1.26.4
- scipy=1.15.1
- pip:
- -r requirements.txt
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
numpy==1.26.4
numpy==2.2.2
scipy==1.15.1
pymbar==3.1.0
networkx==2.8.8
matplotlib==3.7.1
matplotlib==3.10.0
rdkit==2024.9.4
--extra-index-url https://pypi.anaconda.org/OpenEye/simple
openeye-toolkits==2020.2.0
Expand Down
2 changes: 1 addition & 1 deletion timemachine/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set(LIBRARY_NAME custom_ops)
set(PYBIND_SRC_DIR pybind11)

if(NOT EXISTS ${PYBIND_SRC_DIR})
execute_process(COMMAND git clone --depth 1 --branch v2.9.2 https://github.com/pybind/pybind11.git ${PYBIND_SRC_DIR})
execute_process(COMMAND git clone --depth 1 --branch v2.13.6 https://github.com/pybind/pybind11.git ${PYBIND_SRC_DIR})
endif()

set(EIGEN_SRC_DIR eigen)
Expand Down
Loading