Skip to content

Commit

Permalink
Merge pull request #193 from lbl-srg/issue191_typoTut
Browse files Browse the repository at this point in the history
Closes #191.
  • Loading branch information
dhblum authored Jul 31, 2019
2 parents a3b4ce5 + 1c65071 commit c9980cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/userGuide/tutorial/introductory.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,18 @@
... 'T_min' : ('Tzone', 'GTE', units.degC),
... 'T_max' : ('Tzone', 'LTE', units.degC)}
>>> # Instantiate constraint exodata object
>>> constraints = exodata.ConstraintFromCSV('Constraints.csv', variable_map)
>>> constraints = exodata.ConstraintFromCSV('Constraints.csv',
... variable_map,
... tz_name = weather.tz_name)
>>> # Collect data
>>> constraints.collect_data('1/1/2017', '1/3/2017')
>>> # Get data
>>> constraints.display_data() # doctest: +ELLIPSIS
Qflow_GTE Qflow_LTE Tzone_GTE Tzone_LTE
Time
2017-01-01 00:00:00+00:00 0.0 4000.0 20.0 25.0
2017-01-01 01:00:00+00:00 0.0 4000.0 20.0 25.0
2017-01-01 02:00:00+00:00 0.0 4000.0 20.0 25.0
2017-01-01 06:00:00+00:00 0.0 4000.0 20.0 25.0
2017-01-01 07:00:00+00:00 0.0 4000.0 20.0 25.0
2017-01-01 08:00:00+00:00 0.0 4000.0 20.0 25.0
-etc-
We can now instantiate an optimization object using our calibrated MPC model,
Expand Down

0 comments on commit c9980cb

Please sign in to comment.