powersimdata.network package¶
Subpackages¶
- powersimdata.network.constants package
- Subpackages
- powersimdata.network.constants.carrier package
- Submodules
- powersimdata.network.constants.carrier.color module
- powersimdata.network.constants.carrier.efficiency module
- powersimdata.network.constants.carrier.emission module
- powersimdata.network.constants.carrier.label module
- powersimdata.network.constants.carrier.plants module
- powersimdata.network.constants.carrier.resource module
- powersimdata.network.constants.carrier.storage module
- Module contents
- powersimdata.network.constants.region package
- Subpackages
- Submodules
- powersimdata.network.constants.region.division module
- powersimdata.network.constants.region.geography module
- powersimdata.network.constants.region.interconnect module
- powersimdata.network.constants.region.loadzone module
- powersimdata.network.constants.region.mapping module
- powersimdata.network.constants.region.zones module
- Module contents
- powersimdata.network.constants.carrier package
- Submodules
- powersimdata.network.constants.model module
- Module contents
- Subpackages
- powersimdata.network.europe_tub package
- powersimdata.network.hifld package
- powersimdata.network.usa_tamu package
Submodules¶
powersimdata.network.csv_reader module¶
powersimdata.network.helpers module¶
- powersimdata.network.helpers.check_and_format_interconnect(interconnect, model='hifld')[source]¶
Checks interconnect in a grid model.
- Parameters:
interconnect (str/iterable) – interconnect name(s).
model (str) – the grid model.
- Returns:
(list) – interconnect(s)
- Raises:
TypeError – if
interconnect
is not a str.ValueError – if
interconnect
is not in the model. if combination of interconnects is incorrect.
- powersimdata.network.helpers.check_model(model)[source]¶
Check that a grid model exists.
- Parameters:
model (str) – grid model name
- Raises:
TypeError – if
model
is not a str.ValueError – if grid model does not exist.
- powersimdata.network.helpers.get_zone_info(model='hifld')[source]¶
Return information loacated in the zone CSV file of the model.
- Parameters:
model (str) – the grid model.
- Returns:
(pandas.DataFrame) – information on the zones of the model.
- Raises:
FileNotFoundError – if file enclosing the geographical information of the grid model can’t be found.
powersimdata.network.model module¶
- class powersimdata.network.model.ModelImmutables(model, interconnect=None, zone=None)[source]¶
Bases:
object
Immutables for a grid model.
- Parameters:
model (str) – grid model name.
interconnect (str) – interconnect of grid model.
zone (pandas.DataFrame) – a data frame with loadzone name (‘zone_name’), division name (e.g. ‘state’ name for USA grid models), interconnect name (‘interconnect’), time zone of loadzone (‘time_zone’) and division abbreviation (‘abv’) as columns; and loadzone id (‘zone_id’) as indices. If None, it will be assumed that the data frame can be built from a CSV file stored on disk.
- powersimdata.network.model.area_to_loadzone(model, area, area_type=None, zone=None)[source]¶
Map the query area to a list of loadzones.
- Parameters:
model (str) – grid model to use to look up constants for mapping.
area (str) – one of loadzone, state, state abbreviation, interconnect, ‘all’.
area_type (str) – one of ‘loadzone’, ‘state’/’country’, ‘state_abbr’/’country_abbr’, ‘interconnect’. If None,
area
will be searched successively into ‘state’/’country’, ‘loadzone’, ‘state abbreviation’/’country abbreviation’, ‘interconnect’ and ‘all’.zone (pandas.DataFrame) – a data frame with loadzone name (‘zone_name’), division name (e.g. ‘state’ name for USA grid models), interconnect name (‘interconnect’), time zone of loadzone (‘time_zone’) and division abbreviation (‘abv’) as columns; and loadzone id (‘zone_id’) as indices. If None, it will be assumed that the data frame can be built from a CSV file stored on disk.
- Returns:
(set) – set of loadzone names located in the query area.
- Raises:
TypeError – if
area
is not a str. ifarea_type
is not None or str.ValueError – if
area
is invalid if combination ofarea
andarea_type
is invalid.