Skip to content
Snippets Groups Projects
Commit 5d2ec3e5 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Improves message if no data is loaded

parent 01b6f341
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,8 @@ class ComputeFstat(object):
self.detector_names = detector_names
SFT_timestamps = [d.header.epoch for d in SFTCatalog.data]
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:
try:
from bashplotlib.histogram import plot_hist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment