Skip to content

Commit 2b8dabb

Browse files
committed
Fixed add_orientations function (Issue 921)
1 parent 66caec9 commit 2b8dabb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gempy/modules/data_manipulation/manipulate_points.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def add_orientations(geo_model: GeoModel,
125125
if pole_vector is None and orientation is None:
126126
raise ValueError("Either pole_vector or orientation must be provided.")
127127

128-
if orientation: # Convert orientation to pole_vector (or gradient)
128+
if orientation is not None:
129+
orientation = np.array(orientation)
129130
pole_vector = convert_orientation_to_pole_vector(
130131
azimuth=orientation[:, 0],
131132
dip=orientation[:, 1],

0 commit comments

Comments
 (0)