Skip to content

Commit b173bb3

Browse files
dependabot[bot]JaGeoAaron Kaplan
authored
Bump monty from 2026.2.18 to 2026.5.18 (#1485)
* Bump monty from 2026.2.18 to 2026.5.18 Bumps [monty](https://github.com/materialsvirtuallab/monty) from 2026.2.18 to 2026.5.18. - [Release notes](https://github.com/materialsvirtuallab/monty/releases) - [Changelog](https://github.com/materialyzeai/monty/blob/master/docs/changelog.md) - [Commits](materialyzeai/monty@v2026.2.18...v2026.5.18) --- updated-dependencies: - dependency-name: monty dependency-version: 2026.5.18 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * update test for new mp api id format * precommit * try to debug slow tests * change chgcar zip method to work better with new pymatgen-core --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. George <JaGeo@users.noreply.github.com> Co-authored-by: Aaron Kaplan <kaplan@temple.edu>
1 parent 18a9979 commit b173bb3

6 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/testing.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,15 @@ jobs:
8585
# xdist spawns multiple workers each holding a copy of the models.
8686
run: |
8787
micromamba activate a2
88-
pytest -n ${{ matrix.dep-group == 'torch-limited' && '1' || 'auto' }} --cov=atomate2 --cov-report=xml tests/forcefields
89-
#pytest -n auto --cov=atomate2 --cov-report=xml tests/forcefields
88+
pytest --durations=5 -n ${{ matrix.dep-group == 'torch-limited' && '1' || 'auto' }} --cov=atomate2 --cov-report=xml tests/forcefields
9089
9190
- name: Forcefield tutorial
9291
if: matrix.dep-group == 'torch-limited'
9392
env:
9493
MP_API_KEY: ${{ secrets.MP_API_KEY }}
9594
run: |
9695
micromamba activate a2
97-
pytest -n auto --nbmake ./tutorials/force_fields
96+
pytest --durations=5 -n auto --nbmake ./tutorials/force_fields
9897
9998
- uses: codecov/codecov-action@v1
10099
if: matrix.python-version == '3.11' && github.repository == 'materialsproject/atomate2'
@@ -169,7 +168,7 @@ jobs:
169168
# However this `splitting-algorithm` means that tests cannot depend sensitively on the order they're executed in.
170169
run: |
171170
micromamba activate a2
172-
pytest -n auto --splits 3 --group ${{ matrix.split }} --durations-path tests/.pytest-split-durations --splitting-algorithm least_duration --ignore=tests/ase --ignore=tests/openff_md --ignore=tests/openmm_md --ignore=tests/forcefields --cov=atomate2 --cov-report=xml
171+
pytest --durations=5 -n auto --splits 3 --group ${{ matrix.split }} --durations-path tests/.pytest-split-durations --splitting-algorithm least_duration --ignore=tests/ase --ignore=tests/openff_md --ignore=tests/openmm_md --ignore=tests/forcefields --cov=atomate2 --cov-report=xml
173172
174173
175174
- uses: codecov/codecov-action@v1
@@ -234,7 +233,7 @@ jobs:
234233

235234
run: |
236235
micromamba activate a2
237-
pytest -n auto tests/{openff_md,openmm_md}
236+
pytest --durations=5 -n auto tests/{openff_md,openmm_md}
238237
239238
test-notebooks-and-ase:
240239
# prevent this action from running on forks
@@ -296,14 +295,14 @@ jobs:
296295
MP_API_KEY: ${{ secrets.MP_API_KEY }}
297296
run: |
298297
micromamba activate a2
299-
pytest -n auto --nbmake ./tutorials --ignore=./tutorials/openmm_tutorial.ipynb --ignore=./tutorials/force_fields --ignore=./tutorials/torchsim_tutorial.ipynb --ignore=./tutorials/lammps_workflow.ipynb
298+
pytest --durations=5 -n auto --nbmake ./tutorials --ignore=./tutorials/openmm_tutorial.ipynb --ignore=./tutorials/force_fields --ignore=./tutorials/torchsim_tutorial.ipynb --ignore=./tutorials/lammps_workflow.ipynb
300299
301300
- name: Test ASE
302301
env:
303302
MP_API_KEY: ${{ secrets.MP_API_KEY }}
304303
run: |
305304
micromamba activate a2
306-
pytest -n auto --splits 1 --group 1 --cov=atomate2 --cov-report=xml tests/ase
305+
pytest --durations=5 -n auto --splits 1 --group 1 --cov=atomate2 --cov-report=xml tests/ase
307306
308307
- uses: codecov/codecov-action@v1
309308
if: matrix.python-version == '3.11' && github.repository == 'materialsproject/atomate2'
@@ -354,14 +353,14 @@ jobs:
354353
MP_API_KEY: ${{ secrets.MP_API_KEY }}
355354
run: |
356355
micromamba activate a2
357-
pytest -n auto tests/torchsim --cov=atomate2 --cov-report=xml
356+
pytest --durations=5 -n auto tests/torchsim --cov=atomate2 --cov-report=xml
358357
359358
- name: Test TorchSim notebook
360359
env:
361360
MP_API_KEY: ${{ secrets.MP_API_KEY }}
362361
run: |
363362
micromamba activate a2
364-
pytest -n auto --nbmake ./tutorials/torchsim_tutorial.ipynb
363+
pytest --durations=5 -n auto --nbmake ./tutorials/torchsim_tutorial.ipynb
365364
366365
- uses: codecov/codecov-action@v1
367366
if: github.repository == 'materialsproject/atomate2'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@ docs/reference/atomate2.*
8181

8282
# deepmd-kit files
8383
**/*.pb
84+
85+
.mypy_cache

.mypy_cache/3.12/cache.db

Whitespace-only changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ openmm = [
7575
fireworks = ["fireworks==2.1.3"]
7676
strict-openff = [
7777
"mdanalysis==2.10.0",
78-
"monty==2026.2.18",
78+
"monty==2026.5.18",
7979
"openmm-mdanalysis-reporter==0.1.0",
8080
"openmm==8.5.1",
8181
"pymatgen==2026.5.4", # EXERCISE CAUTION WHEN UPDATING - open ff is extremely sensitive to pymatgen version

tests/common/test_jobs.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def test_structure_to_conventional(si_structure):
3838
reason="Materials Project API key not set in environment.",
3939
)
4040
def test_retrieve_structure_from_materials_project():
41+
42+
from emmet.core.mpid import AlphaID
43+
4144
job = retrieve_structure_from_materials_project("mp-149")
4245

4346
responses = run_locally(job)
@@ -50,10 +53,11 @@ def test_retrieve_structure_from_materials_project():
5053
# Note that patches use `.post` suffix in MP DB versions
5154
db_version = stored_data["database_version"].split(".post")[0]
5255
datetime.strptime(db_version, "%Y.%m.%d").replace(tzinfo=timezone.utc)
53-
assert stored_data["task_id"].startswith("mp-")
56+
57+
assert AlphaID(stored_data["task_id"], prefix="mp").startswith("mp-")
5458

5559
job = retrieve_structure_from_materials_project(
56-
"mp-19009", reset_magnetic_moments=False
60+
"mp-13", reset_magnetic_moments=False
5761
)
5862

5963
responses = run_locally(job)
@@ -62,7 +66,7 @@ def test_retrieve_structure_from_materials_project():
6266
assert "magmom" in output.site_properties
6367

6468
job = retrieve_structure_from_materials_project(
65-
"mp-19009", reset_magnetic_moments=True
69+
"mp-13", reset_magnetic_moments=True
6670
)
6771

6872
responses = run_locally(job)

tests/test_data/vasp/ApproxNEB/host_structure_relax_2/outputs/CHGCAR.bz2 renamed to tests/test_data/vasp/ApproxNEB/host_structure_relax_2/outputs/CHGCAR.gz

41.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)