Skip to content

Commit 843ed23

Browse files
committed
Updated to use ase>3.22
Gave up as it's either the energy-is-not-in-info nonsense, or incompatibility with numpy 2.
1 parent 81c17c9 commit 843ed23

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/examples/2-structure_map.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# an example of the verbose definition
5252
"energy": {
5353
"target": "structure",
54-
"values": [frame.info["energy"] for frame in frames],
54+
"values": [frame.get_potential_energy() for frame in frames],
5555
"units": "eV",
5656
"description": "potential energy, computed with DFTB+",
5757
},

python/examples/3-trajectory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# an example of the verbose definition
3030
"energy": {
3131
"target": "structure",
32-
"values": [frame.info["energy"] for frame in frames],
32+
"values": [frame.get_potential_energy() for frame in frames],
3333
"units": "eV",
3434
"description": "potential energy, computed with DFTB+",
3535
},

python/examples/6-explore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def fetch_dataset(filename, base_url="https://zenodo.org/records/12748925/files/
9595
# We also demonstrate a way to provide properties for visualization. The frames and
9696
# properties related to the indexes in the ``environments`` will be extracted.
9797

98-
properties = chemiscope.extract_properties(frames, only=["energy"])
98+
properties = chemiscope.extract_properties(frames, only=["free_energy"])
9999
environments = [(0, 0, 3.5), (1, 0, 3.5), (2, 1, 3.5)]
100100
chemiscope.explore(frames, environments=environments, properties=properties)
101101

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ commands =
2626
[testenv:tests]
2727
description = Run Python unit tests
2828
deps =
29-
ase==3.22.1
29+
ase
3030
rdkit==2024.3.4
3131
stk
3232

0 commit comments

Comments
 (0)