@@ -285,21 +285,21 @@ def process_model(self, unprocessed_model, processing="process", inplace=True):
285
285
elif processing == "update" :
286
286
processing_function = self .update_scalars
287
287
288
- for variable , equation in unprocessed_model .rhs .items ():
288
+ for variable , equation in model .rhs .items ():
289
289
pybamm .logger .debug (
290
290
"{} parameters for {!r} (rhs)" .format (processing .capitalize (), variable )
291
291
)
292
292
model .rhs [variable ] = processing_function (equation )
293
293
294
- for variable , equation in unprocessed_model .algebraic .items ():
294
+ for variable , equation in model .algebraic .items ():
295
295
pybamm .logger .debug (
296
296
"{} parameters for {!r} (algebraic)" .format (
297
297
processing .capitalize (), variable
298
298
)
299
299
)
300
300
model .algebraic [variable ] = processing_function (equation )
301
301
302
- for variable , equation in unprocessed_model .initial_conditions .items ():
302
+ for variable , equation in model .initial_conditions .items ():
303
303
pybamm .logger .debug (
304
304
"{} parameters for {!r} (initial conditions)" .format (
305
305
processing .capitalize (), variable
@@ -313,7 +313,7 @@ def process_model(self, unprocessed_model, processing="process", inplace=True):
313
313
# "positive tab": pos. tab bc "no tab": no tab bc}.
314
314
new_boundary_conditions = {}
315
315
sides = ["left" , "right" , "negative tab" , "positive tab" , "no tab" ]
316
- for variable , bcs in unprocessed_model .boundary_conditions .items ():
316
+ for variable , bcs in model .boundary_conditions .items ():
317
317
processed_variable = processing_function (variable )
318
318
new_boundary_conditions [processed_variable ] = {}
319
319
for side in sides :
@@ -337,14 +337,14 @@ def process_model(self, unprocessed_model, processing="process", inplace=True):
337
337
338
338
model .boundary_conditions = new_boundary_conditions
339
339
340
- for variable , equation in unprocessed_model .variables .items ():
340
+ for variable , equation in model .variables .items ():
341
341
pybamm .logger .debug (
342
342
"{} parameters for {!r} (variables)" .format (
343
343
processing .capitalize (), variable
344
344
)
345
345
)
346
346
model .variables [variable ] = processing_function (equation )
347
- for event , equation in unprocessed_model .events .items ():
347
+ for event , equation in model .events .items ():
348
348
pybamm .logger .debug (
349
349
"{} parameters for event '{}''" .format (processing .capitalize (), event )
350
350
)
0 commit comments