Skip to content

Commit

Permalink
Fix checking of temperature and temperature_tau in md sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Jan 29, 2024
1 parent 86ddba3 commit 775fef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfl/generate/md/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _sample_autopara_wrappable(atoms, calculator, steps, dt, integrator="NVTBere
else:
logfile = None

if temperature_tau is None and not isinstance(temperature, float):
if temperature_tau is None and (temperature is not None and not isinstance(temperature, float)):
raise RuntimeError('NVE (temperature_tau is None) can only accept temperature=float for initial T')

if temperature is not None:
Expand Down

0 comments on commit 775fef9

Please sign in to comment.