Commit 5d2ec3e5 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Improves message if no data is loaded

parent 01b6f341
......@@ -242,6 +242,8 @@ class ComputeFstat(object):
self.detector_names = detector_names
SFT_timestamps = [d.header.epoch for d in]
self.SFT_timestamps = [float(s) for s in SFT_timestamps]
if len(SFT_timestamps) == 0:
raise ValueError('Failed to load any data')
if args.quite is False and args.no_interactive is False:
from bashplotlib.histogram import plot_hist
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment