We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80da719 commit 99f9545Copy full SHA for 99f9545
1 file changed
simpeg_drivers/params.py
@@ -128,15 +128,10 @@ def mesh_cannot_be_rotated(cls, value: Octree):
128
def out_group_if_none(cls, data) -> SimPEGGroup:
129
group = data.get("out_group", None)
130
131
- if isinstance(group, UIJsonGroup):
+ if isinstance(group, UIJsonGroup | type(None)):
132
+ name = cls.title if group is None else group.name
133
with fetch_active_workspace(data["geoh5"], mode="r+") as geoh5:
- group = SimPEGGroup.create(geoh5, name=group.name)
134
- group.metadata = None
135
-
136
- elif group is None:
137
- with fetch_active_workspace(data["geoh5"], mode="r+") as geoh5:
138
- group = SimPEGGroup.create(geoh5, name=cls.title)
139
+ group = SimPEGGroup.create(geoh5, name=name)
140
141
data["out_group"] = group
142
0 commit comments