Skip to content
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
8 changes: 5 additions & 3 deletions simpeg_drivers/line_sweep/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def validate_out_group(self, out_group: SimPEGGroup | None) -> SimPEGGroup:
return out_group

with fetch_active_workspace(self.workspace, mode="r+"):
out_group = SimPEGGroup.create(
self.workspace, name=self.batch2d_params.title
)
out_group = self.workspace.get_entity(self.batch2d_params.title)[0]
if out_group is None:
out_group = SimPEGGroup.create(
self.workspace, name=self.batch2d_params.title
)

return out_group

Expand Down