Skip to content

Commit

Permalink
Merge pull request #152 from luigibonati/test_fixes
Browse files Browse the repository at this point in the history
Numpy 2 update temporary fixes
  • Loading branch information
EnricoTrizio authored Sep 23, 2024
2 parents d24ed62 + a92d518 commit 69e702e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- codecov

# Package dependencies
- numpy
- numpy<2
- pandas
- pytorch
- pydantic<2
Expand Down
2 changes: 1 addition & 1 deletion mlcolvar/utils/fes.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def compute_fes(
(X[:, i].min() - offset, X[:, i].max() + offset) for i in range(dim)
]
grid_list = [np.linspace(b[0], b[1], num_samples) for b in bounds]
grid = np.meshgrid(*grid_list)
grid = list(np.meshgrid(*grid_list))
positions = np.vstack([g.ravel() for g in grid]).T

# divide in blocks
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lightning
torch
numpy
numpy<2
pandas
matplotlib
kdepy

0 comments on commit 69e702e

Please sign in to comment.