Skip to content

Commit 447de6c

Browse files
authored
Merge pull request #91 from MiraGeoscience/GEOPY-789
GEOPY-789: Joint inversion: PGI
2 parents 5f2b6d8 + c1c7155 commit 447de6c

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

simpeg/directives/_save_geoh5.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .directives import InversionDirective
1111
from simpeg.maps import IdentityMap
1212

13-
from geoh5py.data import NumericData
13+
from geoh5py.data import FloatData
1414
from geoh5py.data.data_type import ReferencedValueMapType
1515
from geoh5py.groups.property_group import GroupTypeEnum
1616
from geoh5py.groups import UIJsonGroup
@@ -451,17 +451,14 @@ def write(self, iteration: int, **_):
451451
children = [
452452
child
453453
for child in h5_object.children
454-
if (
455-
channel_name in child.name
456-
and isinstance(child, NumericData)
457-
)
454+
if (channel_name in child.name and isinstance(child, FloatData))
458455
]
459456

460457
if children[0] is not None:
461458
properties += children
462459

463460
if len(properties) == 0:
464-
return
461+
continue
465462

466463
prop_group = h5_object.get_property_group(base_name)[0]
467464

0 commit comments

Comments
 (0)