Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Goetz <32753745+eagoetz@users.noreply.github.com>
  • Loading branch information
iaraota and eagoetz authored May 21, 2024
1 parent 51ce21a commit 17b3bf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gwsumm/data/coherence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion gwsumm/data/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17b3bf9

Please sign in to comment.