Skip to content

Commit 10f05fd

Browse files
committed
[WIP] Implemented surface_points and orientations.py
1 parent 694aee8 commit 10f05fd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

gempy/core/data/orientations.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,15 @@ def initialize_empty(cls) -> 'OrientationsTable':
6060
@property
6161
def xyz(self) -> np.ndarray:
6262
return np.array([self.data['X'], self.data['Y'], self.data['Z']]).T
63-
63+
64+
@property
65+
def xyz_view(self) -> np.ndarray:
66+
return self.data[['X', 'Y', 'Z']]
67+
68+
@xyz_view.setter
69+
def xyz_view(self, value: np.ndarray):
70+
self.data['X'], self.data['Y'], self.data['Z'] = value.T
71+
6472
@property
6573
def grads(self) -> np.ndarray:
6674
return np.array([self.data['G_x'], self.data['G_y'], self.data['G_z']]).T

test/test_modules/.benchmarks/test_transformed_space.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ def test_plot_transformed_data():
1616
gpv.plot_3d(
1717
model,
1818
image=False,
19-
transformed_data=True
19+
transformed_data=True,
20+
kwargs_plot_data={
21+
'arrow_size': .01
22+
}
2023
)
2124

2225

0 commit comments

Comments
 (0)