Skip to content

Commit 201e146

Browse files
Repickle BinMappers and Refactor westpa.analysis tests (westpa#548)
* repickle all binmappers * code used to repickle * remove repickle code * format test_analysis.py to match other tests * fix west_ref.py last iteration * change ref_analysis's scope to class * update ref_analysis docstring * remake bin pickles in numpy 1.25.0 for maximum compatibility * filter warning until we drop numpy 1.X support * refactor tests_analysis.py
1 parent ea55f8a commit 201e146

File tree

3 files changed

+262
-286
lines changed

3 files changed

+262
-286
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,10 @@ versionfile_build = "westpa/_version.py"
105105
tag_prefix = "v"
106106
parentdir_prefix = "westpa-"
107107

108+
[tool.pytest]
109+
filterwarnings = [
110+
# The following is to filter warnings from unpickling `west_ref.h5`'s binmapper pickles. Numpy changed their internals
111+
# so it'll throw a DeprecationWarning (load 1.X pickle in 2.X) or throw a ModuleNotFoundError (load 2.X pickle in 1.X).
112+
# Once we drop support for numpy 1.X, remake the binmapper pickles in numpy 2.0 and remove this filter.
113+
'ignore:numpy.core.numeric is deprecated and has been renamed to numpy._core.numeric.:DeprecationWarning',
114+
]

tests/refs/west_ref.h5

4 KB
Binary file not shown.

0 commit comments

Comments
 (0)