Skip to content

Commit

Permalink
Update py-modelrunner dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Apr 14, 2024
1 parent de66c7e commit a4c8c8f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
h5py>=2.10
pandas>=2
Pillow>=7.0
py-modelrunner>=0.17
py-modelrunner>=0.17.1
Sphinx>=4
sphinx-autodoc-annotation>=1.0
sphinx-gallery>=0.6
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/requirements_optional.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ mpi4py,3,Parallel processing using MPI
napari,0.4.8,Displaying images interactively
numba-mpi,0.22,Parallel processing using MPI+numba
pandas,2,Handling tabular data
py-modelrunner,0.17,Running simulations and handling I/O
py-modelrunner,0.17.1,Running simulations and handling I/O
pyfftw,0.12,Faster Fourier transforms
rocket-fft,0.2.4,Numba-compiled fast Fourier transforms
2 changes: 1 addition & 1 deletion pde/tools/resources/requirements_full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ matplotlib>=3.1
numba>=0.59
numpy>=1.22
pandas>=2
py-modelrunner>=0.17
py-modelrunner>=0.17.1
rocket-fft>=0.2.4
scipy>=1.10
sympy>=1.9
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def line(self, relation: str = ">=") -> str:
),
Requirement(
name="py-modelrunner",
version_min="0.17",
version_min="0.17.1",
usage="Running simulations and handling I/O",
collections={"full", "docs"},
),
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements_full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ matplotlib>=3.1
numba>=0.59
numpy>=1.22
pandas>=2
py-modelrunner>=0.17
py-modelrunner>=0.17.1
rocket-fft>=0.2.4
scipy>=1.10
sympy>=1.9
Expand Down
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_modelrunner_storage_one(tmp_path, capsys):

# read result
with mr.open_storage(output, mode="read") as storage_obj:
np.testing.assert_allclose(storage_obj["trajectory"].times, [0, 1])
np.testing.assert_allclose(storage_obj["data/trajectory"].times, [0, 1])
result = mr.Result.from_file(output)
assert isinstance(result.data["field"], ScalarField)

Expand Down Expand Up @@ -193,7 +193,7 @@ def test_modelrunner_storage_many(tmp_path):
for path in tmp_path.iterdir():
if path.is_file() and not path.name.endswith("txt"):
with mr.open_storage(path) as storage:
assert "trajectory" in storage.keys()
assert "trajectory" in storage["data"].keys()
assert "result" in storage.keys()

# delete temporary files
Expand Down

0 comments on commit a4c8c8f

Please sign in to comment.