Closed jan-janssen closed 1 month ago
DGL backend not selected or invalid. Assuming PyTorch for now.
E
======================================================================
ERROR: test_calc_evcurve (tests.test_ase_interface.test_evcurve_ase_matgl.TestEvCurve.test_calc_evcurve)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/my-env/lib/python3.11/site-packages/matgl/utils/io.py", line 212, in load_model
return cls_.load(fpaths, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/miniconda3/envs/my-env/lib/python3.11/site-packages/matgl/utils/io.py", line 129, in load
model = cls(**d)
^^^^^^^^
TypeError: Potential.__init__() got an unexpected keyword argument 'calc_magmom'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/work/atomistics/atomistics/tests/test_ase_interface/test_evcurve_ase_matgl.py", line 25, in test_calc_evcurve
ase_calculator = M3GNetCalculator(matgl.load_model("M3GNet-MP-2021.2.8-PES"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/miniconda3/envs/my-env/lib/python3.11/site-packages/matgl/utils/io.py", line 214, in load_model
raise ValueError(
ValueError: Bad serialized model or bad model name. It is possible that you have an older model cached. Please clear your cache by running `python -c "import matgl; matgl.clear_cache()"`
----------------------------------------------------------------------
The models online changed, that is why the MatGL tests fail. https://github.com/materialsvirtuallab/matgl/pull/242 I guess we just have to wait for them to release a new version.
The recent update focuses on upgrading the matgl
dependency from version 0.9.2
to 1.1.1
within the .ci_support/environment-matgl.yml
file. This change ensures compatibility with the latest features and improvements in the matgl
package.
File | Change Summary |
---|---|
.ci_support/environment-matgl.yml |
Upgraded matgl version from 0.9.2 to 1.1.1 |
🐰✨ In the land of code so bright, Matgl's version took a flight, From nine-two to one-one-one, New features and fixes, oh what fun! Our CI's now up to date, With dependencies first-rate! 🐇💻
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
matgl
dependency from version0.9.2
to1.1.1
for improved performance and stability.