Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
5d2ec3e5
Commit
5d2ec3e5
authored
Apr 04, 2017
by
Gregory Ashton
Browse files
Improves message if no data is loaded
parent
01b6f341
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
5d2ec3e5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment