Skip to content

Commit a4b5b65

Browse files
author
Johannes Steinmetzer
committed
fix: added missing h5_fn in dia driver test
1 parent 38f7dd3 commit a4b5b65

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

pysisyphus/diabatization/coulomb_eta.py

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
from pysisyphus.wavefunction.localization import JacobiSweepResult
2727

2828

29+
# TODO: rename eta to epsilon. Why did I call all this ER-eta instead of
30+
# ER-epsilon?
31+
32+
2933
# Wrap gradient and Hessian functions, so they only have to be set up
3034
# once and can be reused later.
3135
__jac_func = None

pysisyphus/io/cube.py

+4
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ class Cube:
165165
comment1: str = "Generated by pysisyphus"
166166
comment2: str = ""
167167

168+
@property
169+
def vol_element(self):
170+
return np.prod(np.diag(self.axes))
171+
168172
@staticmethod
169173
def from_file(fn):
170174
return parse_cube(fn)

tests/test_diabatization/test_diabatization.py

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def test_diabatization_driver(dia_kinds, this_dir):
5151
cube_kinds=dia_driver.CubeKind.NONE,
5252
out_dir=out_dir,
5353
force=True,
54+
h5_fn=out_dir / "00_bena2_cat_dia_result.h5",
5455
)
5556
# Only one key will be present
5657
key = list(dia_results.keys())[0]

0 commit comments

Comments
 (0)