Skip to content

Commit

Permalink
docs: Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Sep 11, 2019
1 parent 793698b commit 2ca26a7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions postreise/plot/analyze_pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ class AnalyzePG:
:param tuple time: time related parameters. 1st element is the starting
date. 2nd element is the ending date (left out). 3rd element is the
timezone, only *'utc'*, *'US/Pacific'* and *'local'* are possible. 4th
element is the frequency, which can be *'H'*, *'D'*, *'W'* or *'auto'*.
:param list zones: geographical zones. Any combinations of *'Arizona'*,
*'California'*, *'Bay Area'*, *'Central California'*,
*'Northern California'*, *'Southeast California'*,
*'Southwest California'*, *'Colorado'*, *'El Paso'*, *'Idaho'*,
*'Montana'*, *'Nevada'*, *'New Mexico'*, *'Oregon'*, *'Utah'*,
*'Washington'*, *'Western'*, *'Wyoming'*.
element is the frequency, which can be *'H'* (hour), *'D'* (day), *'W'*
(week) or *'auto'*.
:param list zones: geographical zones. Any combinations of load zones in the
Western interconnection or ERCOT plus *'California'*, *'Western'* or
*'Texas'*.
:param list resources: energy resources. Can be any combinations of
*'coal'*, *'dfo'*, *'geothermal'*, *'hydro'*, *'ng'*, *'nuclear'*,
*'solar'*, *'wind'*.
Expand Down Expand Up @@ -69,7 +67,7 @@ def __init__(self, scenario, time, zones, resources, kind,
self.hydro = scenario.state.get_hydro()
self.interconnect = self.grid.interconnect

# Set zone names, colors and fuel types
# Zone to time zone
self.zone2time = {'Arizona': 'US/Mountain',
'Bay Area': 'US/Pacific',
'California': 'US/Pacific',
Expand Down Expand Up @@ -98,6 +96,7 @@ def __init__(self, scenario, time, zones, resources, kind,
'Texas': 'US/Central',
'West': 'US/Central'}

# Fuel type to label for used in plots
self.type2label = {'nuclear': 'Nuclear',
'geothermal': 'Geothermal',
'coal': 'Coal',
Expand Down

0 comments on commit 2ca26a7

Please sign in to comment.