From 17b3bf9d5b96263f0d22cd630061a64bd371b95e Mon Sep 17 00:00:00 2001 From: Iara Ota <15733043+iaraota@users.noreply.github.com> Date: Tue, 21 May 2024 16:08:28 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Evan Goetz <32753745+eagoetz@users.noreply.github.com> --- gwsumm/data/coherence.py | 4 +++- gwsumm/data/spectral.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gwsumm/data/coherence.py b/gwsumm/data/coherence.py index bfe947e5..a6144310 100644 --- a/gwsumm/data/coherence.py +++ b/gwsumm/data/coherence.py @@ -290,7 +290,9 @@ def _get_coherence_spectrogram(channel_pair, segments, config=None, globalv.SPECTROGRAMS[key].append(csg) globalv.SPECTROGRAMS[key].coalesce() else: - warnings.warn('NaN values found in the spectrogram.') + warnings.warn('NaN values found in the spectrogram.' + ' Spectrogram will not be appended to' + ' global memory value') if not return_: return diff --git a/gwsumm/data/spectral.py b/gwsumm/data/spectral.py index 29f8387e..4c434150 100644 --- a/gwsumm/data/spectral.py +++ b/gwsumm/data/spectral.py @@ -247,7 +247,9 @@ def add_spectrogram(specgram, key=None, coalesce=True): if coalesce: globalv.SPECTROGRAMS[key].coalesce() else: - warnings.warn('NaN values found in the spectrogram.') + warnings.warn('NaN values found in the spectrogram.' + ' Spectrogram will not be appended to' + ' global memory value') @use_segmentlist