File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -169,22 +169,21 @@ def __init__(
169169 else :
170170 raise ValueError (f"spatial unit '{ spatial_unit } ' not recognized" )
171171
172- # Set time or discharge capacity as x-axis
172+ # set x_axis
173+ self .x_axis = x_axis
174+
173175 if x_axis == "Discharge Capacity [A.h]" :
174- print ("yay" )
175176 # Use discharge capacity as x-axis
176- self .x_axis = "Discharge capacity [A.h]"
177-
178177 discharge_capacities = [
179178 solution ["Discharge capacity [A.h]" ].entries for solution in solutions
180179 ]
181- self .dc_values = discharge_capacities
180+ self .dc_values = discharge_capacities
182181
183182 self .min_dc = min (dc [0 ] for dc in discharge_capacities )
184183 self .max_dc = max (dc [- 1 ] for dc in discharge_capacities )
185184
186185 self .dc_unit = "A.h"
187-
186+
188187 # Default to time
189188 self .ts_seconds = [solution .t for solution in solutions ]
190189 min_t = np .min ([t [0 ] for t in self .ts_seconds ])
@@ -200,6 +199,7 @@ def t_sample(sol):
200199 else :
201200 t_plot = sol .t
202201 return t_plot
202+
203203 ts_seconds = []
204204 for sol in solutions :
205205 # Sample time points for each sub-solution
You can’t perform that action at this time.
0 commit comments