Skip to content

Commit 92c8da4

Browse files
committed
More prints
1 parent 2697ff0 commit 92c8da4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

simpeg_drivers/plate_simulation/match/driver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,12 @@ def normalized_data(data: np.ndarray, threshold=5) -> np.ndarray:
426426
427427
:return: Normalized data array.
428428
"""
429+
print(np.abs(data).min(), np.abs(data).max())
429430
thresh = np.percentile(np.abs(data), threshold)
431+
print(thresh)
430432
log_data = symlog(data, thresh)
431433
centered_log = log_data - np.median(log_data)
434+
print(centered_log.min(), centered_log.max())
432435
return centered_log / np.abs(centered_log).max()
433436

434437

tests/plate_simulation/runtest/match_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_matching_driver(tmp_path: Path):
185185
for uid in prop_group.properties:
186186
child = survey.get_entity(uid)[0]
187187
child.values = child.values[::-1]
188-
188+
print(child.values.min(), child.values.max())
189189
# Change the strike angle to simulate a different orientation
190190
strikes = components.queries.add_data(
191191
{

0 commit comments

Comments
 (0)