Skip to content

Commit

Permalink
fix(delayspectrum): ignore broken spectra
Browse files Browse the repository at this point in the history
Ignore files that we can't plot because of #23
  • Loading branch information
nritsche committed Jul 17, 2020
1 parent 9bd6472 commit eeeeac8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bondia/plot/delayspectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def view(self):
np.any(spectrum.spectrum[this_cyl_sep, :] > 0.0, axis=-1)
]

# TODO: what do we do in this case?
# See https://github.com/chime-experiment/bondia/issues/23
if len(this_cyl_sep) == 0:
continue

# Index map for baseline (y-axis)
baseline_index = y[this_cyl_sep]

Expand Down

0 comments on commit eeeeac8

Please sign in to comment.