Commit 8e83aa4d authored by Martin Schrön's avatar Martin Schrön
Browse files

Message when data is empty after period cutting.

parent 192d2f59
......@@ -1360,6 +1360,9 @@ def main(configfile=None, cfg_prefix=None):
#data_orig = aggregate(data_orig, gc(config,'clean','aggregate_minor_vis', '1H'),
# func = gc(config,'clean','aggregate_func', alt='mean'))
if len(data) <= 1:
print('! No data remains. Did you cut out an empty period?')
start_str = data.index.min().strftime('%Y%m%d%H')
end_str = data.index.max().strftime('%Y%m%d%H')
end_str = '-'+end_str if start_str != end_str else ''
......
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