Skip to content

Commit

Permalink
Fix hdf5 file checking to prevent deadlock before folder is created
Browse files Browse the repository at this point in the history
  • Loading branch information
kburns committed Dec 16, 2024
1 parent e141383 commit ab8ffc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dedalus/core/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def __init__(self, base_path, *args, max_writes=None, mode=None, **kw):
mode = FILEHANDLER_MODE_DEFAULT
# Check base_path
base_path = pathlib.Path(base_path).resolve()
if not base_path.is_dir():
if base_path.is_file():
raise ValueError("base_path should indicate a folder for storing HDF5 files.")
# Attributes
self.base_path = base_path
Expand Down

0 comments on commit ab8ffc1

Please sign in to comment.