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__(
169
169
else :
170
170
raise ValueError (f"spatial unit '{ spatial_unit } ' not recognized" )
171
171
172
- # Set time or discharge capacity as x-axis
172
+ # set x_axis
173
+ self .x_axis = x_axis
174
+
173
175
if x_axis == "Discharge Capacity [A.h]" :
174
- print ("yay" )
175
176
# Use discharge capacity as x-axis
176
- self .x_axis = "Discharge capacity [A.h]"
177
-
178
177
discharge_capacities = [
179
178
solution ["Discharge capacity [A.h]" ].entries for solution in solutions
180
179
]
181
- self .dc_values = discharge_capacities
180
+ self .dc_values = discharge_capacities
182
181
183
182
self .min_dc = min (dc [0 ] for dc in discharge_capacities )
184
183
self .max_dc = max (dc [- 1 ] for dc in discharge_capacities )
185
184
186
185
self .dc_unit = "A.h"
187
-
186
+
188
187
# Default to time
189
188
self .ts_seconds = [solution .t for solution in solutions ]
190
189
min_t = np .min ([t [0 ] for t in self .ts_seconds ])
@@ -200,6 +199,7 @@ def t_sample(sol):
200
199
else :
201
200
t_plot = sol .t
202
201
return t_plot
202
+
203
203
ts_seconds = []
204
204
for sol in solutions :
205
205
# Sample time points for each sub-solution
You can’t perform that action at this time.
0 commit comments