Skip to content

Commit 42bda97

Browse files
committed
Fixed indentation in driver.rst
1 parent 5f915fb commit 42bda97

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • doc/OnlineDocs/explanation/analysis/parmest

doc/OnlineDocs/explanation/analysis/parmest/driver.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ Section.
7171
from pyomo.contrib.parmest.examples.rooney_biegler.rooney_biegler import RooneyBieglerExperiment
7272

7373
class NewRooneyBieglerExperiment(RooneyBieglerExperiment):
74-
def label_model(self):
75-
m = self.model
76-
77-
# create the experiment outputs
78-
m.experiment_outputs = pyo.Suffix(direction=pyo.Suffix.LOCAL)
79-
m.experiment_outputs.update(
80-
[(m.response_function[self.data['hour']], self.data['y'])]
81-
)
82-
83-
# create the unknown parameters
84-
m.unknown_parameters = pyo.Suffix(direction=pyo.Suffix.LOCAL)
85-
m.unknown_parameters.update((k, pyo.value(k)) for k in [m.asymptote, m.rate_constant])
86-
87-
# create the measurement error
88-
m.measurement_error = pyo.Suffix(direction = pyo.Suffix.LOCAL)
89-
m.measurement_error.update([(m.response_function[self.data['hour']], None)])
74+
def label_model(self):
75+
m = self.model
76+
77+
# create the experiment outputs
78+
m.experiment_outputs = pyo.Suffix(direction=pyo.Suffix.LOCAL)
79+
m.experiment_outputs.update(
80+
[(m.response_function[self.data['hour']], self.data['y'])]
81+
)
82+
83+
# create the unknown parameters
84+
m.unknown_parameters = pyo.Suffix(direction=pyo.Suffix.LOCAL)
85+
m.unknown_parameters.update((k, pyo.value(k)) for k in [m.asymptote, m.rate_constant])
86+
87+
# create the measurement error
88+
m.measurement_error = pyo.Suffix(direction = pyo.Suffix.LOCAL)
89+
m.measurement_error.update([(m.response_function[self.data['hour']], None)])
9090

9191
exp_list = []
9292
for i in range(data.shape[0]):

0 commit comments

Comments
 (0)