Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions param_sweeps/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,11 @@ def __init__(self, params: SweepParams):
raise ValueError("Workspace must be specified.")

self.params: SweepParams = params
self.workspace: Workspace = params.geoh5

if isinstance(self.workspace.h5file, BytesIO) or self.workspace.h5file is None:
workspace = params.geoh5
if isinstance(workspace.h5file, BytesIO) or workspace.h5file is None:
raise ValueError("Workspace must be saved to disk.")

self.working_directory = str(Path(self.workspace.h5file).parent)
self.working_directory = str(Path(workspace.h5file).parent)
lookup = self.get_lookup()
self.write_files(lookup)

Expand Down