[initial] first implementation of residual plotting (WIP)

This commit is contained in:
2024-09-16 16:29:14 +02:00
parent 18c37dfdd0
commit 053b1ce397
4 changed files with 95 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ class HidePrints:
if self.hide:
self._original_stdout = sys.stdout
devnull = open(os.devnull, "w")
sys.stdout = devnull
#sys.stdout = devnull
def __exit__(self, exc_type, exc_val, exc_tb):
if self.hide:
@@ -271,7 +271,7 @@ class TestAutopickStation(unittest.TestCase):
'fm': 'N', 'channel': None}}
with HidePrints():
result, station = autopickstation(wfstream=wfstream, pickparam=self.pickparam_taupy_disabled,
metadata=(None, None))
metadata=(None, None), iplot=2)
compare_dicts(expected=expected['P'], result=result['P'], hint='P-')
compare_dicts(expected=expected['S'], result=result['S'], hint='S-')
self.assertEqual('GRA1', station)