Skip to content
Snippets Groups Projects
Commit 4c6b0def authored by Daniel Friesel's avatar Daniel Friesel
Browse files

show an error message when a power plot request cannot be fulfilled

parent 9f7c8ca6
No related branches found
No related tags found
No related merge requests found
......@@ -583,11 +583,17 @@ def main():
export_json(dlog, args.json_export, extra_data)
if args.plot:
if args.plot == "P" and dlog.all_data_slots_have_power():
if args.pelt:
show_power_plot(dlog, changepoints)
if args.plot == "P":
if dlog.all_data_slots_have_power():
if args.pelt:
show_power_plot(dlog, changepoints)
else:
show_power_plot(dlog)
else:
show_power_plot(dlog)
print(
"Error: power plot requested, but neither power nor voltage*current readings present.",
file=sys.stderr,
)
elif args.plot == "all":
show_raw_plot(dlog)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment