Skip to content

Commit 8b25688

Browse files
committed
formatting updates
1 parent be878d1 commit 8b25688

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: pyomo/contrib/parmest/experiment.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
class Experiment:
1414
"""
1515
The experiment class is a template for making experiment lists
16-
to pass to parmest.
17-
18-
An experiment is a Pyomo model "m" which is labeled
16+
to pass to parmest.
17+
18+
An experiment is a Pyomo model "m" which is labeled
1919
with additional suffixes:
2020
* m.experiment_outputs which defines experiment outputs
2121
* m.unknown_parameters which defines parameters to estimate
22-
22+
2323
The experiment class has one required method:
2424
* get_labeled_model() which returns the labeled Pyomo model
2525
"""
26+
2627
def __init__(self, model=None):
2728
self.model = model
2829

Diff for: pyomo/contrib/parmest/parmest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _expand_indexed_unknowns(self, model_temp):
408408
Expand indexed variables to get full list of thetas
409409
"""
410410
model_theta_list = [k.name for k, v in model_temp.unknown_parameters.items()]
411-
411+
412412
# check for indexed theta items
413413
indexed_theta_list = []
414414
for theta_i in model_theta_list:
@@ -419,11 +419,11 @@ def _expand_indexed_unknowns(self, model_temp):
419419
indexed_theta_list.append(theta_i + '[' + str(ind) + ']')
420420
else:
421421
indexed_theta_list.append(theta_i)
422-
422+
423423
# if we found indexed thetas, use expanded list
424424
if len(indexed_theta_list) > len(model_theta_list):
425425
model_theta_list = indexed_theta_list
426-
426+
427427
return model_theta_list
428428

429429
def _create_parmest_model(self, experiment_number):

0 commit comments

Comments
 (0)