Skip to content

Commit c6bed38

Browse files
committed
aqcat calculator
1 parent be3f15f commit c6bed38

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

asimtools/calculators.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ def load_ase_dftd3(calc_params):
389389
if ( (dft_calc_id is not None) and (dft_calc_params is not None) ):
390390
raise ValueError('Provide only one of dft_calc_id or dft_calc_params')
391391

392-
dft = load_calc(calc_id=dft_calc_id, calc_params=dft_calc_params)
392+
if ( (dft_calc_id is not None) or (dft_calc_params is not None) ):
393+
dft = load_calc(calc_id=dft_calc_id, calc_params=dft_calc_params)
394+
else:
395+
dft = None
393396
try:
394397
calc = DFTD3(dft=dft, **d3_args)
395398
except Exception:
@@ -409,14 +412,12 @@ def load_aqcat(calc_params):
409412
"""
410413
from fairchem.core.common.relaxation.ase_utils import patched_calc
411414

412-
CHECKPOINT_PATH = "aqcat25/checkpoints_aqcat_ev2/ev2-in+midFiLM-AQCat25+OC20-20M_20251008_223220.pt"
413-
414415
try:
415-
calc = patched_calc(**calc_params)
416+
calc = patched_calc(**calc_params['args'])
416417
except Exception:
417418
logging.error(
418419
"Failed to load AQCat FAIRChemCalculator with parameters:\n %s", \
419-
calc_params
420+
calc_params['args']
420421
)
421422
raise
422423

0 commit comments

Comments
 (0)