File tree Expand file tree Collapse file tree
simpeg_drivers/components/factories Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525import numpy as np
2626from geoapps_utils .utils .transformations import x_rotation_matrix , z_rotation_matrix
27+ from geoh5py .objects .surveys .electromagnetics .base import AirborneEMSurvey
2728
2829from simpeg_drivers .components .factories .simpeg_factory import SimPEGFactory
2930from simpeg_drivers .utils .regularization import direction_and_dip , get_cell_normals
@@ -162,7 +163,10 @@ def assemble_keyword_arguments(
162163 kwargs ["data_type" ] = "ppm"
163164
164165 # Overload orientation if provided
165- if self .factory_type in ["tdem" , "fdem" ] and local_indices is not None :
166+ if (
167+ isinstance (self .params .data_object , AirborneEMSurvey )
168+ and local_indices is not None
169+ ):
166170 kwargs ["orientation" ] = self .orientations [kwargs ["orientation" ]][
167171 local_indices , :
168172 ]
File renamed without changes.
You can’t perform that action at this time.
0 commit comments