Skip to content

Commit 41c1280

Browse files
committed
Restrict orientation to airborne for now
1 parent ade914b commit 41c1280

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

simpeg_drivers/components/factories/receiver_factory.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import numpy as np
2626
from geoapps_utils.utils.transformations import x_rotation_matrix, z_rotation_matrix
27+
from geoh5py.objects.surveys.electromagnetics.base import AirborneEMSurvey
2728

2829
from simpeg_drivers.components.factories.simpeg_factory import SimPEGFactory
2930
from 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.

0 commit comments

Comments
 (0)