Skip to content

Commit ab8ffc1

Browse files
committed
Fix hdf5 file checking to prevent deadlock before folder is created
1 parent e141383 commit ab8ffc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dedalus/core/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def __init__(self, base_path, *args, max_writes=None, mode=None, **kw):
388388
mode = FILEHANDLER_MODE_DEFAULT
389389
# Check base_path
390390
base_path = pathlib.Path(base_path).resolve()
391-
if not base_path.is_dir():
391+
if base_path.is_file():
392392
raise ValueError("base_path should indicate a folder for storing HDF5 files.")
393393
# Attributes
394394
self.base_path = base_path

0 commit comments

Comments
 (0)