From fa310461d02019c67583458a161b99d8c297bf9f Mon Sep 17 00:00:00 2001 From: Marcel Office Desktop Date: Thu, 15 Aug 2024 17:15:10 +0200 Subject: [PATCH] [update] added possibility to remove the mean from picks (WIP for residual plotting) --- pylot/core/util/array_map.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/array_map.py b/pylot/core/util/array_map.py index 47048ef4..df318aaf 100644 --- a/pylot/core/util/array_map.py +++ b/pylot/core/util/array_map.py @@ -432,6 +432,9 @@ class Array_map(QtWidgets.QWidget): picks_rel[st_id] = pick return picks_rel + def get_picks_rel_mean_corr(picks): + return get_picks_rel(picks, func=np.nanmean) + self.picks, self.uncertainties = get_picks(self.stations_dict) self.picks_rel = get_picks_rel(self.picks)