Skip to content

Commit 3bac865

Browse files
committed
increase GNIRS XD max_shift to 0.5 and remove hardcoded limit for max shift (regardless of distance between points in tracing direction)
1 parent 8be087c commit 3bac865

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

gempy/library/tracing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,16 +753,14 @@ def _profile_for_centering(data, var, rwidth):
753753
for s in all_slices[these_steps]])
754754
shift_tol = max_shift * abs(effective_ypos - trace.last_point[0])
755755
predicted_peak = trace.predict_location(effective_ypos, order=1)
756-
peak_tol = 5
757756

758757
peaks, peak_values = pinpoint_peaks(
759758
data[j], peaks=[predicted_peak], mask=mask[j],
760759
halfwidth=halfwidth)
761760

762761
if (not peaks or min_peak_value is not None and
763762
peak_values[0] < min_peak_value or
764-
abs(peaks[0] - trace.last_point[1]) > shift_tol or
765-
abs(peaks[0] - predicted_peak) > peak_tol):
763+
abs(peaks[0] - trace.last_point[1]) > shift_tol):
766764
continue
767765

768766
# A valid peak has been found

0 commit comments

Comments
 (0)