Skip to content

Commit 76c0a25

Browse files
committed
fix: check if the dispersion is None
1 parent e795dbf commit 76c0a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambench/models/ase_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def run_ase_dptest(
284284
dpdata.LabeledSystem.register_data_type(datatype)
285285

286286
calc = model.calc
287-
if dispersion_correction:
287+
if dispersion_correction is not None:
288288
calc = SumCalculator(
289289
[calc, DFTD3(method="PBE", dispersion_correction=dispersion_correction)]
290290
)

0 commit comments

Comments
 (0)