Fix small bug on battery_consumption plot script

replace/6944e0cfaf8a0ed719c9a75f3f26ba1b76927c15
JulioV 2019-11-13 14:54:44 -05:00
parent 44bbe17435
commit d24c62392a
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ battery_data = pd.read_csv(snakemake.input[0])
pid = snakemake.params["pid"]
if battery_data.empty:
empty_html = open(snakemake.output[0], "w")
empty_html.write("There is no "+ sensor_name + " data for "+pid)
empty_html.write("There is no battery data for " + pid)
empty_html.close()
else:
plot = getBatteryConsumptionRatesBarChart(battery_data, pid)