Skip to content

Commit

Permalink
updated blocking variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Oct 3, 2023
1 parent 3a79b84 commit c901cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions caimira/apps/calculator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,17 @@ def find_change_points_with_pelt(self, CO2_data: dict):
def generate_ventilation_plot(self, CO2_data: dict,
transition_times: typing.Optional[list] = None,
predictive_CO2: typing.Optional[list] = None):
times = CO2_data['times']
CO2_data = CO2_data['CO2']
times_values = CO2_data['times']
CO2_values = CO2_data['CO2']

fig = plt.figure(figsize=(7, 4), dpi=110)
plt.plot(times, CO2_data, label='Input CO₂')
plt.plot(times_values, CO2_values, label='Input CO₂')

if (transition_times):
for time in transition_times:
plt.axvline(x = time, color = 'grey', linewidth=0.5, linestyle='--')
if (predictive_CO2):
plt.plot(times, predictive_CO2, label='Predictive CO₂')
plt.plot(times_values, predictive_CO2, label='Predictive CO₂')
plt.xlabel('Time of day')
plt.ylabel('Concentration (ppm)')
plt.legend()
Expand Down

0 comments on commit c901cee

Please sign in to comment.