File tree Expand file tree Collapse file tree
simpeg_drivers/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717from geoapps_utils .utils .importing import GeoAppsError
1818from geoapps_utils .utils .numerical import weighted_average
1919from geoh5py .data import Data , FloatData , NumericData
20- from geoh5py .data .data_type import GeometricDataValueMapType
20+ from geoh5py .data .data_type import GeometricDataValueMapType , ReferencedValueMapType
2121from geoh5py .objects import ObjectBase
2222from simpeg .utils .mat_utils import (
2323 dip_azimuth2cartesian ,
@@ -662,7 +662,9 @@ def obj_2_mesh(data: Data, destination: ObjectBase) -> np.ndarray:
662662
663663 values = data .values .astype (float )
664664
665- if isinstance (data .entity_type , GeometricDataValueMapType ):
665+ if isinstance (
666+ data .entity_type , GeometricDataValueMapType | ReferencedValueMapType
667+ ):
666668 values [values == 0 ] = np .nan
667669
668670 full_vector = weighted_average (xyz_in , xyz_out , [values ], n = 1 )[0 ]
You can’t perform that action at this time.
0 commit comments