marmot.plottingmodules.plotutils.plot_data_helper.GenCategories#

class GenCategories(vre: typing.List[str] = <factory>, pv: typing.List[str] = <factory>, re: typing.List[str] = <factory>, thermal: typing.List[str] = <factory>)[source]#

Bases: object

Defines various generator categories.

Methods

set_categories(df)

Set generator categories from a dataframe

Attributes

vre

List of variable renewable technologies.

pv

List of PV technologies.

re

List of renewable technologies.

thermal

List of thermal technologies.

vre: List[str]#

List of variable renewable technologies.

Type

vre (List[str])

pv: List[str]#

List of PV technologies.

Type

pv (List[str])

re: List[str]#

List of renewable technologies.

Type

re (List[str])

thermal: List[str]#

List of thermal technologies.

Type

thermal (List[str])

classmethod set_categories(df: pandas.core.frame.DataFrame) marmot.plottingmodules.plotutils.plot_data_helper.GenCategories[source]#

Set generator categories from a dataframe

Categories include the following:

  • vre

  • pv

  • re

  • thermal

Parameters

df (pd.DataFrame) –

Dataframe containing an ‘Ordered_Gen’ column and a column for each generator category. The format should appear like the following.

https://nrel.github.io/Marmot/references/input-files/mapping-folder/ ordered_gen_categories.html#input-example

Returns

returns instance of class.

Return type

GenCategories