Skip to content

Commit

Permalink
fix: added missing h5_fn in dia driver test
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Steinmetzer committed Nov 25, 2024
1 parent 38f7dd3 commit a4b5b65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pysisyphus/diabatization/coulomb_eta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
from pysisyphus.wavefunction.localization import JacobiSweepResult


# TODO: rename eta to epsilon. Why did I call all this ER-eta instead of
# ER-epsilon?


# Wrap gradient and Hessian functions, so they only have to be set up
# once and can be reused later.
__jac_func = None
Expand Down
4 changes: 4 additions & 0 deletions pysisyphus/io/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ class Cube:
comment1: str = "Generated by pysisyphus"
comment2: str = ""

@property
def vol_element(self):
return np.prod(np.diag(self.axes))

@staticmethod
def from_file(fn):
return parse_cube(fn)
Expand Down
1 change: 1 addition & 0 deletions tests/test_diabatization/test_diabatization.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_diabatization_driver(dia_kinds, this_dir):
cube_kinds=dia_driver.CubeKind.NONE,
out_dir=out_dir,
force=True,
h5_fn=out_dir / "00_bena2_cat_dia_result.h5",
)
# Only one key will be present
key = list(dia_results.keys())[0]
Expand Down

0 comments on commit a4b5b65

Please sign in to comment.