Skip to content

Commit

Permalink
np.Inf -> np.inf for numpy 2.0 compatibility
Browse files Browse the repository at this point in the history
... and show numpy version detected by CMake
  • Loading branch information
dweindl committed May 6, 2024
1 parent 8c3b59a commit 2210853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_conserved_quantities_demartino.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def test_cl_detect_execution_time(data_demartino2014):
# <5s on modern hardware, but leave some slack
max_time_seconds = 40 if "GITHUB_ACTIONS" in os.environ else 10

runtime = np.Inf
runtime = np.inf

for _ in range(max_tries):
runtime = compute_moiety_conservation_laws_demartino2014(
Expand Down
1 change: 1 addition & 0 deletions swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ find_package(
Python3
COMPONENTS Interpreter Development NumPy
REQUIRED)
message(STATUS "Found numpy ${Python3_NumPy_VERSION} include dir ${Python3_NumPy_INCLUDE_DIRS}")
set(AMICI_INTERFACE_LIST
${CMAKE_CURRENT_SOURCE_DIR}/amici.i
${CMAKE_CURRENT_SOURCE_DIR}/edata.i
Expand Down

0 comments on commit 2210853

Please sign in to comment.