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

Fix gh cron CI #4272

Merged
merged 5 commits into from
Aug 31, 2023
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ jobs:
with:
micromamba: true
full-deps: true
gsd: "gsd<3.0"

- name: install_mdanalysis
run: |
Expand Down
2 changes: 2 additions & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The rules for this file:
* 2.7.0

Fixes
* Deprecated np.float_ and np.NaN aliases have been replaced with
their original type value (np.float64 and np.nan) (PR #4272)

Enhancements

Expand Down
6 changes: 3 additions & 3 deletions package/MDAnalysis/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,9 @@ def fixedwidth_bins(delta, xmin, xmax):
"""
if not np.all(xmin < xmax):
raise ValueError('Boundaries are not sane: should be xmin < xmax.')
_delta = np.asarray(delta, dtype=np.float_)
_xmin = np.asarray(xmin, dtype=np.float_)
_xmax = np.asarray(xmax, dtype=np.float_)
_delta = np.asarray(delta, dtype=np.float64)
_xmin = np.asarray(xmin, dtype=np.float64)
_xmax = np.asarray(xmax, dtype=np.float64)
_length = _xmax - _xmin
N = np.ceil(_length / _delta).astype(np.int_) # number of bins
dx = 0.5 * (N * _delta - _length) # add half of the excess to each end
Expand Down
2 changes: 1 addition & 1 deletion testsuite/MDAnalysisTests/analysis/test_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def test_ValueError_userdefn_xdim_nanvalue(self, universe):
with pytest.raises(ValueError, match=regex):
D = density.DensityAnalysis(
universe.select_atoms(self.selections['static']),
delta=self.delta, xdim=np.NaN, ydim=10.0, zdim=10.0,
delta=self.delta, xdim=np.nan, ydim=10.0, zdim=10.0,
gridcenter=self.gridcenters['static_defined']).run(step=5)

def test_warn_noatomgroup(self, universe):
Expand Down
Loading