Skip to content

Commit

Permalink
Check that dcd exists before loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
orionarcher committed Apr 10, 2024
1 parent 7902b9c commit 891b067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emmet-core/emmet/core/classical_md/openmm/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def from_directory(
traj_is_not_empty = traj_file.exists() and traj_file.stat().st_size > 0
traj_file_name = traj_file_name if traj_is_not_empty else None # type: ignore

if embed_traj:
if embed_traj and traj_is_not_empty:
with open(traj_file, "rb") as f:
traj_blob = f.read()
else:
Expand Down

0 comments on commit 891b067

Please sign in to comment.