Skip to content

Commit

Permalink
fix: make diabatization.driver importable w/o pysisyphus_addons
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Steinmetzer committed Nov 14, 2024
1 parent 00f1d7e commit adc9c8f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pysisyphus/diabatization/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@
norm_ci_coeffs,
)

# pysisyphus_addons imports below
from pysisyphus_addons.diabatization import intor
from pysisyphus_addons.grid import grid

try:
# pysisyphus_addons imports below
from pysisyphus_addons.diabatization import intor
from pysisyphus_addons.grid import grid

can_pysis_addons = True
except (ImportError, ModuleNotFoundError):
can_pysis_addons = False


class DiaKind(enum.Flag):
Expand Down

0 comments on commit adc9c8f

Please sign in to comment.