SYMBOL INDEX (1597 symbols across 266 files) FILE: capacity_update.py function capacity_update (line 23) | def capacity_update( FILE: electricitymap/contrib/capacity_parsers/CA_ON.py function get_data_from_url (line 26) | def get_data_from_url(session: Session, target_datetime: datetime) -> pd... function fetch_production_capacity (line 40) | def fetch_production_capacity( function get_last_month_of_last_full_quarter (line 65) | def get_last_month_of_last_full_quarter( FILE: electricitymap/contrib/capacity_parsers/CEA.py function fetch_production_capacity_for_all_zones (line 73) | def fetch_production_capacity_for_all_zones( function fetch_production_capacity (line 105) | def fetch_production_capacity( function get_renewable_capacity (line 113) | def get_renewable_capacity(path: str, zone_key: ZoneKey | None = None) -... FILE: electricitymap/contrib/capacity_parsers/CL_SEN.py function fetch_production_capacity (line 29) | def fetch_production_capacity( FILE: electricitymap/contrib/capacity_parsers/DE.py function convert_to_mw (line 33) | def convert_to_mw(value: float | int | None) -> float: function fetch_production_capacity (line 40) | def fetch_production_capacity( function update_capacity_breakdown (line 68) | def update_capacity_breakdown( FILE: electricitymap/contrib/capacity_parsers/EIA.py function format_capacity (line 52) | def format_capacity(df: pd.DataFrame, target_datetime: datetime) -> dict... function fetch_production_capacity (line 77) | def fetch_production_capacity( function fetch_production_capacity_for_all_zones (line 105) | def fetch_production_capacity_for_all_zones( FILE: electricitymap/contrib/capacity_parsers/EMBER.py function get_ember_capacity_yearly_data (line 44) | def get_ember_capacity_yearly_data(country_iso2: ZoneKey, session: Sessi... function _ember_production_mode_mapper (line 113) | def _ember_production_mode_mapper(row: pd.Series) -> str | None: function transform_ember_data (line 144) | def transform_ember_data(ember_df: pd.DataFrame) -> pd.DataFrame: function get_capacity_dict_from_df (line 179) | def get_capacity_dict_from_df( function remove_consecutive_duplicates (line 216) | def remove_consecutive_duplicates( function get_capacity_dict_all_years_from_df (line 247) | def get_capacity_dict_all_years_from_df( function fetch_production_capacity (line 283) | def fetch_production_capacity( function fetch_production_capacity_all_years (line 311) | def fetch_production_capacity_all_years( function fetch_production_capacity_for_all_zones (line 358) | def fetch_production_capacity_for_all_zones( function fetch_production_capacity_for_all_zones_all_years (line 385) | def fetch_production_capacity_for_all_zones_all_years( FILE: electricitymap/contrib/capacity_parsers/ENTSOE.py function query_capacity (line 44) | def query_capacity( function fetch_production_capacity (line 61) | def fetch_production_capacity( function fetch_production_capacity_for_all_zones (line 96) | def fetch_production_capacity_for_all_zones( FILE: electricitymap/contrib/capacity_parsers/FI.py function get_fingrid_capacity (line 18) | def get_fingrid_capacity( function parse_fingrid_capacity (line 46) | def parse_fingrid_capacity( function fetch_production_capacity (line 64) | def fetch_production_capacity( FILE: electricitymap/contrib/capacity_parsers/GB.py function fetch_production_capacity (line 29) | def fetch_production_capacity( FILE: electricitymap/contrib/capacity_parsers/IRENA.py function get_data_from_url (line 41) | def get_data_from_url( function get_capacity_data_for_zones (line 132) | def get_capacity_data_for_zones( function fetch_production_capacity (line 192) | def fetch_production_capacity( function fetch_production_capacity_for_all_zones (line 207) | def fetch_production_capacity_for_all_zones( FILE: electricitymap/contrib/capacity_parsers/MY_WM.py function get_capacity_datetime (line 27) | def get_capacity_datetime(session: Session) -> datetime: function fetch_production_capacity (line 35) | def fetch_production_capacity( FILE: electricitymap/contrib/capacity_parsers/ONS.py function filter_data_by_date (line 42) | def filter_data_by_date(data: pd.DataFrame, target_datetime: datetime) -... function fetch_production_capacity_for_all_zones (line 57) | def fetch_production_capacity_for_all_zones( function fetch_production_capacity (line 118) | def fetch_production_capacity( FILE: electricitymap/contrib/capacity_parsers/OPENELECTRICITY.py function get_openelectricity_capacity_data (line 42) | def get_openelectricity_capacity_data(session: Session) -> pd.DataFrame: function filter_capacity_data_by_datetime (line 79) | def filter_capacity_data_by_datetime( function fetch_production_capacity_for_all_zones (line 98) | def fetch_production_capacity_for_all_zones( function fetch_production_capacity (line 128) | def fetch_production_capacity( function get_solar_capacity_au_nt (line 144) | def get_solar_capacity_au_nt(target_datetime: datetime) -> float | None: FILE: electricitymap/contrib/capacity_parsers/REE.py function fetch_production_capacity (line 57) | def fetch_production_capacity( function fetch_production_capacity_for_all_zones (line 102) | def fetch_production_capacity_for_all_zones( FILE: electricitymap/contrib/capacity_parsers/tests/conftest.py function adapter (line 14) | def adapter(): function session (line 26) | def session(adapter): FILE: electricitymap/contrib/capacity_parsers/tests/test_ONS.py function test_filter_data_by_date (line 8) | def test_filter_data_by_date(): FILE: electricitymap/contrib/capacity_parsers/tests/test_OPENELECTRICITY.py function openelectricity_token_env (line 32) | def openelectricity_token_env(): function test_filter_capacity_data_by_datetime (line 36) | def test_filter_capacity_data_by_datetime(): function test_fetch_capacities (line 51) | def test_fetch_capacities(adapter, session, snapshot): FILE: electricitymap/contrib/config/__init__.py function _get_most_recent_value (line 118) | def _get_most_recent_value(emission_factors: dict) -> dict[dict, Any]: function emission_factors (line 125) | def emission_factors(zone_key: ZoneKey) -> dict[str, float]: FILE: electricitymap/contrib/config/capacity.py class CapacityData (line 29) | class CapacityData: function get_capacity_data (line 34) | def get_capacity_data(capacity_config: dict, dt: datetime) -> dict[str, ... function get_capacity_data_with_source (line 46) | def get_capacity_data_with_source( function _get_capacity_from_dict_or_list (line 61) | def _get_capacity_from_dict_or_list( FILE: electricitymap/contrib/config/co2eq_parameters.py function generate_co2eq_parameters (line 10) | def generate_co2eq_parameters( FILE: electricitymap/contrib/config/data_center_model.py class StrictBaseModel (line 13) | class StrictBaseModel(BaseModel): class Config (line 14) | class Config: class DataCenter (line 18) | class DataCenter(BaseModel): method ID (line 30) | def ID(self) -> str: method string_not_empty (line 34) | def string_not_empty(cls, v): method lonlat_valid (line 40) | def lonlat_valid(cls, v): method parse_date (line 49) | def parse_date(cls, v): method zone_key_exists (line 66) | def zone_key_exists(cls, v): class DataCenters (line 77) | class DataCenters(BaseModel): class Config (line 82) | class Config: method ids_are_unique (line 87) | def ids_are_unique(cls, v): method check_unique_combination (line 96) | def check_unique_combination(cls, v): FILE: electricitymap/contrib/config/emission_factors_lookup.py function get_zone_specific_co2eq_parameter (line 21) | def get_zone_specific_co2eq_parameter( function _get_zone_specific_co2eq_parameter_no_metadata (line 47) | def _get_zone_specific_co2eq_parameter_no_metadata( function _get_zone_specific_co2eq_parameter_with_metadata (line 103) | def _get_zone_specific_co2eq_parameter_with_metadata( function _get_emission_factor_lifecycle_and_direct (line 226) | def _get_emission_factor_lifecycle_and_direct( function get_emission_factors_with_metadata_all_years (line 255) | def get_emission_factors_with_metadata_all_years( FILE: electricitymap/contrib/config/model.py class StrictBaseModel (line 32) | class StrictBaseModel(BaseModel): class Config (line 33) | class Config: class StrictBaseModelWithAlias (line 37) | class StrictBaseModelWithAlias(BaseModel): class Config (line 38) | class Config: class ModeCapacity (line 47) | class ModeCapacity(StrictBaseModelWithAlias): class Capacity (line 55) | class Capacity(StrictBaseModel): function _get_parser_folder (line 75) | def _get_parser_folder(parser_key: str) -> str: class ParsersBaseModel (line 83) | class ParsersBaseModel(StrictBaseModel): method get_function (line 84) | def get_function(self, data_type: str) -> Callable | None: class Parsers (line 99) | class Parsers(ParsersBaseModel): class Source (line 116) | class Source(StrictBaseModel): class Delays (line 120) | class Delays(StrictBaseModel): class Zone (line 129) | class Zone(StrictBaseModelWithAlias): method currency_is_valid (line 158) | def currency_is_valid(cls, v): method neighbors (line 163) | def neighbors(self) -> list[ZoneKey]: class ExchangeParsers (line 167) | class ExchangeParsers(ParsersBaseModel): class Exchange (line 180) | class Exchange(StrictBaseModelWithAlias): class PowerOriginRatiosValues (line 188) | class PowerOriginRatiosValues(StrictBaseModelWithAlias): method check_sum (line 206) | def check_sum(cls, values): class PowerOriginRatios (line 216) | class PowerOriginRatios(StrictBaseModelWithAlias): class PowerOriginRatiosForZone (line 224) | class PowerOriginRatiosForZone(StrictBaseModelWithAlias): class FallbackZoneMixes (line 233) | class FallbackZoneMixes(StrictBaseModelWithAlias): class ModeCategoryContribution (line 238) | class ModeCategoryContribution(StrictBaseModelWithAlias): class CategoryContribution (line 246) | class CategoryContribution(StrictBaseModelWithAlias): method check_contributions (line 272) | def check_contributions(cls, values): class IsLowCarbon (line 282) | class IsLowCarbon(StrictBaseModelWithAlias): class IsRenewable (line 287) | class IsRenewable(StrictBaseModelWithAlias): class ModeEmissionFactor (line 292) | class ModeEmissionFactor(StrictBaseModelWithAlias): class AllModesEmissionFactors (line 300) | class AllModesEmissionFactors(StrictBaseModelWithAlias): method check_emission_factors (line 326) | def check_emission_factors(cls, values): class EmissionFactors (line 336) | class EmissionFactors(StrictBaseModelWithAlias): class CO2eqParameters (line 341) | class CO2eqParameters(StrictBaseModelWithAlias): class ConfigModel (line 348) | class ConfigModel(StrictBaseModel): class CO2eqConfigModel (line 356) | class CO2eqConfigModel(StrictBaseModel): function _load_config_model (line 361) | def _load_config_model() -> ConfigModel: class EmissionFactorVariant (line 374) | class EmissionFactorVariant(Enum): class EmissionFactorMode (line 393) | class EmissionFactorMode(Enum): class YearZoneModeEmissionFactor (line 408) | class YearZoneModeEmissionFactor(StrictBaseModelWithAlias): method validate_datetime_field (line 422) | def validate_datetime_field(cls, v: datetime | None) -> datetime | None: method check_factor_relationship (line 445) | def check_factor_relationship(cls, values): FILE: electricitymap/contrib/config/reading.py function read_defaults (line 12) | def read_defaults(config_dir) -> dict[str, Any]: function read_zones_config (line 19) | def read_zones_config(config_dir, retired=False) -> dict[ZoneKey, Any]: function read_exchanges_config (line 34) | def read_exchanges_config(config_dir) -> dict[ZoneKey, Any]: function read_data_centers_config (line 47) | def read_data_centers_config(config_dir): FILE: electricitymap/contrib/config/zones.py function zone_bounding_boxes (line 9) | def zone_bounding_boxes(zones_config: dict[ZoneKey, Any]) -> dict[ZoneKe... function zone_parents (line 18) | def zone_parents(zones_config: dict[ZoneKey, Any]) -> dict[ZoneKey, Zone... function generate_zone_neighbours (line 28) | def generate_zone_neighbours( function generate_all_neighbours (line 60) | def generate_all_neighbours( FILE: electricitymap/contrib/lib/models/event_lists.py class EventList (line 30) | class EventList(ABC, Generic[EventType]): method __init__ (line 39) | def __init__(self, logger: Logger): method __len__ (line 43) | def __len__(self): method __contains__ (line 46) | def __contains__(self, datetime) -> bool: method __setitem__ (line 49) | def __setitem__(self, datetime, event: EventType): method __add__ (line 52) | def __add__(self, other: "EventList") -> "EventList": method __getitem__ (line 57) | def __getitem__(self, datetime) -> EventType: method __iter__ (line 60) | def __iter__(self): method append (line 64) | def append(self, **kwargs): method to_list (line 69) | def to_list(self) -> list[dict[str, Any]]: method dataframe (line 75) | def dataframe(self) -> pd.DataFrame: class AggregatableEventList (line 92) | class AggregatableEventList(EventList[EventType], ABC, Generic[EventType]): method is_completely_empty (line 96) | def is_completely_empty( method get_zone_source_type (line 108) | def get_zone_source_type( method _get_unique_zone (line 124) | def _get_unique_zone(cls, events: pd.DataFrame) -> ZoneKey: method _get_aggregated_sources (line 139) | def _get_aggregated_sources(cls, events: pd.DataFrame) -> str: method _get_unique_source_type (line 149) | def _get_unique_source_type(cls, events: pd.DataFrame) -> EventSourceT... class ExchangeList (line 164) | class ExchangeList(AggregatableEventList[Exchange]): method append (line 165) | def append( method merge_exchanges (line 180) | def merge_exchanges( method update_exchanges (line 213) | def update_exchanges( class ExchangeCapacityList (line 239) | class ExchangeCapacityList(EventList[ExchangeCapacity]): method append (line 240) | def append( class ProductionBreakdownList (line 262) | class ProductionBreakdownList(AggregatableEventList[ProductionBreakdown]): method append (line 263) | def append( method merge_production_breakdowns (line 279) | def merge_production_breakdowns( method update_production_breakdowns (line 322) | def update_production_breakdowns( class TotalProductionList (line 388) | class TotalProductionList(AggregatableEventList[TotalProduction]): method append (line 389) | def append( method merge_total_production_lists (line 404) | def merge_total_production_lists( class TotalConsumptionList (line 440) | class TotalConsumptionList(AggregatableEventList[TotalConsumption]): method append (line 441) | def append( method merge_consumption_lists (line 456) | def merge_consumption_lists( class PriceList (line 494) | class PriceList(EventList[Price]): method append (line 495) | def append( class LocationalMarginalPriceList (line 511) | class LocationalMarginalPriceList(EventList[LocationalMarginalPrice]): method append (line 512) | def append( class GridAlertList (line 529) | class GridAlertList(EventList[GridAlert]): method append (line 530) | def append( FILE: electricitymap/contrib/lib/models/events.py function _is_naive (line 26) | def _is_naive(t: dt.datetime) -> bool: function _none_safe_round (line 31) | def _none_safe_round(value: float | None, precision: int = 6) -> float |... class Mix (line 40) | class Mix(BaseModel, ABC): method add_value (line 41) | def add_value( method merge (line 61) | def merge(cls, mixes: list["Mix"]) -> "Mix": method _update (line 65) | def _update(cls, mix: "Mix", new_mix: "Mix") -> "Mix": method __setattr__ (line 68) | def __setattr__(self, name: str, value: float | None) -> None: method __setitem__ (line 75) | def __setitem__(self, key: str, value: float | None) -> None: class ProductionMix (line 82) | class ProductionMix(Mix): method __init__ (line 103) | def __init__(self, **data: Any): method dict (line 118) | def dict( # noqa: A003 method __setattr__ (line 146) | def __setattr__( method _correct_negative_value (line 163) | def _correct_negative_value( method add_value (line 175) | def add_value( method has_corrected_negative_values (line 189) | def has_corrected_negative_values(self) -> bool: method corrected_negative_modes (line 193) | def corrected_negative_modes(self) -> Set[str]: method merge (line 197) | def merge(cls, production_mixes: list["ProductionMix"]) -> "Production... method _update (line 217) | def _update( class StorageMix (line 232) | class StorageMix(Mix): method __init__ (line 242) | def __init__(self, **data: Any): method __setattr__ (line 250) | def __setattr__(self, name: str, value: float | None) -> None: method merge (line 259) | def merge(cls, storage_mixes: list["StorageMix"]) -> "StorageMix": method _update (line 273) | def _update( class EventSourceType (line 286) | class EventSourceType(str, Enum): class Event (line 296) | class Event(BaseModel, ABC): method _validate_zone_key (line 317) | def _validate_zone_key(cls, v): method _validate_datetime (line 323) | def _validate_datetime(cls, v: dt.datetime, values: dict[str, Any]) ->... method create (line 340) | def create(*args, **kwargs) -> "Event": method to_dict (line 345) | def to_dict(self) -> dict[str, Any]: class AggregatableEvent (line 350) | class AggregatableEvent(Event): method _unique_zone_key (line 356) | def _unique_zone_key(df_view: pd.DataFrame) -> ZoneKey: method _sources (line 363) | def _sources(df_view: pd.DataFrame) -> str: method _unique_source_type (line 372) | def _unique_source_type(df_view: pd.DataFrame) -> EventSourceType: method _unique_datetime (line 381) | def _unique_datetime(df_view: pd.DataFrame) -> datetime: method _aggregated_fields (line 390) | def _aggregated_fields( method aggregate (line 402) | def aggregate(events: list["AggregatableEvent"]) -> "AggregatableEvent": class Exchange (line 407) | class Exchange(Event): method _validate_zone_key (line 418) | def _validate_zone_key(cls, v: str): method _validate_value (line 429) | def _validate_value(cls, v: float | None): method create (line 440) | def create( method _update (line 467) | def _update(event: "Exchange", new_event: "Exchange") -> "Exchange": method to_dict (line 493) | def to_dict(self) -> dict[str, Any]: class TotalProduction (line 503) | class TotalProduction(Event): method _validate_value (line 509) | def _validate_value(cls, v: float | None): method create (line 522) | def create( method _update (line 549) | def _update( method to_dict (line 577) | def to_dict(self) -> dict[str, Any]: class ProductionBreakdown (line 587) | class ProductionBreakdown(AggregatableEvent): method _validate_production_mix (line 596) | def _validate_production_mix(cls, v): method _validate_storage_mix (line 606) | def _validate_storage_mix(cls, v): method get_value (line 613) | def get_value(self, mode: str) -> float | None: method create (line 629) | def create( method aggregate (line 664) | def aggregate(events: list["ProductionBreakdown"]) -> "ProductionBreak... method _update (line 703) | def _update( method to_dict (line 733) | def to_dict(self) -> dict[str, Any]: class TotalConsumption (line 751) | class TotalConsumption(Event): method _validate_consumption (line 757) | def _validate_consumption(cls, v: float): method create (line 772) | def create( method _update (line 799) | def _update( method to_dict (line 827) | def to_dict(self) -> dict[str, Any]: class Price (line 837) | class Price(Event): method _validate_currency (line 842) | def _validate_currency(cls, v: str) -> str: method _validate_datetime (line 848) | def _validate_datetime(cls, v: dt.datetime) -> datetime: method _validate_price (line 857) | def _validate_price(cls, v: float | None) -> float: method create (line 866) | def create( method to_dict (line 894) | def to_dict(self) -> dict[str, Any]: class LocationalMarginalPrice (line 905) | class LocationalMarginalPrice(Price): method _validate_node (line 909) | def _validate_node(cls, v: str) -> str: method create (line 918) | def create( method to_dict (line 948) | def to_dict(self) -> dict[str, Any]: class GridAlertType (line 960) | class GridAlertType(str, Enum): class GridAlert (line 966) | class GridAlert(Event): method _validate_alert_type (line 975) | def _validate_alert_type(cls, v: GridAlertType) -> GridAlertType: method _validate_message (line 981) | def _validate_message(cls, v: str) -> str: method _validate_issued_time (line 987) | def _validate_issued_time(cls, v: datetime) -> datetime: method _validate_start_time (line 995) | def _validate_start_time(cls, v: datetime | None) -> datetime | None: method _default_start_time (line 1003) | def _default_start_time(cls, values): method _validate_end_time (line 1009) | def _validate_end_time(cls, v: datetime | None) -> datetime | None: method create (line 1019) | def create( method to_dict (line 1052) | def to_dict(self) -> dict[str, Any]: class ExchangeCapacity (line 1066) | class ExchangeCapacity(Event): method _validate_zone_key (line 1080) | def _validate_zone_key(cls, v: str): method _validate_capacity_bounds (line 1091) | def _validate_capacity_bounds(cls, values: dict[str, Any]) -> dict[str... method create (line 1102) | def create( method to_dict (line 1131) | def to_dict(self) -> dict[str, Any]: FILE: electricitymap/contrib/lib/tests/test_event_lists.py function test_exchange_list (line 27) | def test_exchange_list(): function test_append_to_list_logs_error (line 44) | def test_append_to_list_logs_error(): function test_merge_exchanges (line 56) | def test_merge_exchanges(): function test_merge_exchanges_with_none (line 80) | def test_merge_exchanges_with_none(): function test_merge_exchanges_with_negatives (line 103) | def test_merge_exchanges_with_negatives(): function test_update_exchange_list (line 126) | def test_update_exchange_list(): function test_update_exchange_list_with_different_zoneKey (line 159) | def test_update_exchange_list_with_different_zoneKey(): function test_update_exchange_list_with_longer_new_list (line 180) | def test_update_exchange_list_with_longer_new_list(): function test_consumption_list (line 213) | def test_consumption_list(): function test_append_to_consumption_list_logs_error (line 230) | def test_append_to_consumption_list_logs_error(): function test_price_list (line 242) | def test_price_list(): function test_append_to_price_list_logs_error (line 254) | def test_append_to_price_list_logs_error(): function test_locational_marginal_price_list (line 267) | def test_locational_marginal_price_list(): function test_append_to_locational_marginal_price_list_logs_error (line 280) | def test_append_to_locational_marginal_price_list_logs_error(): function test_grid_alert_list (line 294) | def test_grid_alert_list(): function test_append_to_grid_alert_list_logs_error (line 309) | def test_append_to_grid_alert_list_logs_error(): function test_production_list (line 325) | def test_production_list(): function test_production_list_logs_error (line 336) | def test_production_list_logs_error(): function test_merge_production_list_production_mix_only (line 356) | def test_merge_production_list_production_mix_only(): function test_merge_production_list (line 433) | def test_merge_production_list(): function test_merge_production_list_doesnt_yield_extra_modes (line 498) | def test_merge_production_list_doesnt_yield_extra_modes(): function test_merge_production_list_predicted (line 529) | def test_merge_production_list_predicted(): function test_merge_production_retains_corrected_negatives (line 574) | def test_merge_production_retains_corrected_negatives(): function test_merge_production_retains_corrected_negatives_with_0_and_none (line 625) | def test_merge_production_retains_corrected_negatives_with_0_and_none(): function test_update_production_list_with_production (line 665) | def test_update_production_list_with_production(): function test_update_production_list_with_new_list_being_longer (line 700) | def test_update_production_list_with_new_list_being_longer(): function test_update_storage_list_with_new_list_being_longer (line 737) | def test_update_storage_list_with_new_list_being_longer(): function test_update_production_list_with_storage (line 772) | def test_update_production_list_with_storage(): function test_update_production_list_with_none_in_production (line 807) | def test_update_production_list_with_none_in_production(): function test_update_production_list_with_none_in_storage (line 833) | def test_update_production_list_with_none_in_storage(): function test_update_production_with_different_zoneKey (line 857) | def test_update_production_with_different_zoneKey(): function test_update_production_with_different_source (line 878) | def test_update_production_with_different_source(): function test_update_production_with_different_sourceType (line 906) | def test_update_production_with_different_sourceType(): function test_update_production_with_empty_list (line 928) | def test_update_production_with_empty_list(): function test_update_production_with_empty_new_list (line 948) | def test_update_production_with_empty_new_list(): function test_update_stroage_with_empty_list (line 968) | def test_update_stroage_with_empty_list(): function test_update_stroage_with_empty_new_list (line 987) | def test_update_stroage_with_empty_new_list(): function test_total_production_list (line 1006) | def test_total_production_list(): function test_merge_total_production_lists (line 1017) | def test_merge_total_production_lists(): function test_merge_consumption_lists (line 1064) | def test_merge_consumption_lists(): function test_df_representation (line 1111) | def test_df_representation(): function test_exchange_capacity_forecast_list (line 1132) | def test_exchange_capacity_forecast_list(): function test_append_to_exchange_capacity_forecast_list_logs_error (line 1151) | def test_append_to_exchange_capacity_forecast_list_logs_error(): function test_exchange_capacity_forecast_list_to_list_sorted_by_datetime (line 1166) | def test_exchange_capacity_forecast_list_to_list_sorted_by_datetime(): FILE: electricitymap/contrib/lib/tests/test_events.py function test_create_exchange (line 29) | def test_create_exchange(): function test_raises_if_invalid_exchange (line 50) | def test_raises_if_invalid_exchange(): function test_exchange_static_create_logs_error (line 121) | def test_exchange_static_create_logs_error(): function test_update_exchange (line 134) | def test_update_exchange(): function test_update_total_production (line 155) | def test_update_total_production(): function test_update_total_consumption_raises_on_mismatched_zone (line 176) | def test_update_total_consumption_raises_on_mismatched_zone(): function test_create_consumption (line 194) | def test_create_consumption(): function test_raises_if_invalid_consumption (line 207) | def test_raises_if_invalid_consumption(): function test_static_create_logs_error (line 258) | def test_static_create_logs_error(): function test_create_price (line 271) | def test_create_price(): function test_invalid_price_raises (line 286) | def test_invalid_price_raises(): function test_prices_can_be_in_future (line 344) | def test_prices_can_be_in_future(): function test_create_locational_marginal_price (line 354) | def test_create_locational_marginal_price(): function test_invalid_locational_marginal_price_node_raises (line 385) | def test_invalid_locational_marginal_price_node_raises(node): function test_create_grid_alerts (line 398) | def test_create_grid_alerts(): function test_invalid_message_raises (line 421) | def test_invalid_message_raises(): function test_create_production_breakdown (line 437) | def test_create_production_breakdown(): function test_create_production_breakdown_with_storage (line 452) | def test_create_production_breakdown_with_storage(): function test_invalid_breakdown_raises (line 474) | def test_invalid_breakdown_raises(): function test_negative_production_gets_corrected (line 506) | def test_negative_production_gets_corrected(): function test_self_report_negative_value (line 531) | def test_self_report_negative_value(): function test_unknown_production_mode_raises (line 553) | def test_unknown_production_mode_raises(): function test_forecasted_points (line 567) | def test_forecasted_points(): function test_non_forecasted_points_in_future (line 585) | def test_non_forecasted_points_in_future(): function test_non_forecasted_point_with_timezone_forward (line 597) | def test_non_forecasted_point_with_timezone_forward(): function test_static_create_logs_error_with_none (line 609) | def test_static_create_logs_error_with_none(): function test_static_create_logs_with_nan (line 622) | def test_static_create_logs_with_nan(): function test_static_create_logs_with_nan_using_numpy (line 635) | def test_static_create_logs_with_nan_using_numpy(): function test_set_breakdown_all_present (line 648) | def test_set_breakdown_all_present(): function test_set_modes_all_present_add_mode (line 661) | def test_set_modes_all_present_add_mode(): function test_create_generation (line 676) | def test_create_generation(): function test_total_production_static_create_logs_error (line 689) | def test_total_production_static_create_logs_error(): function test_raises_if_invalid_generation (line 702) | def test_raises_if_invalid_generation(): function test_production_mix_has_all_production_modes (line 758) | def test_production_mix_has_all_production_modes(): function test_storage_mix_has_all_storage_modes (line 764) | def test_storage_mix_has_all_storage_modes(): function test_set_attr (line 770) | def test_set_attr(): function test_set_attr_with_negative_value (line 776) | def test_set_attr_with_negative_value(): function test_set_attr_with_none (line 782) | def test_set_attr_with_none(): function test_set_attr_with_invalid_mode (line 788) | def test_set_attr_with_invalid_mode(): function test_set_item (line 794) | def test_set_item(): function test_set_item_with_negative_value (line 800) | def test_set_item_with_negative_value(): function test_set_item_with_none (line 806) | def test_set_item_with_none(): function test_set_item_with_invalid_mode (line 812) | def test_set_item_with_invalid_mode(): function test_set_attr_storage (line 818) | def test_set_attr_storage(): function test_set_attr_storage_with_negative_value (line 824) | def test_set_attr_storage_with_negative_value(): function test_set_attr_storage_with_none (line 830) | def test_set_attr_storage_with_none(): function test_set_attr_storage_with_invalid_mode (line 836) | def test_set_attr_storage_with_invalid_mode(): function test_set_item_storage (line 842) | def test_set_item_storage(): function test_set_item_storage_with_negative_value (line 848) | def test_set_item_storage_with_negative_value(): function test_set_item_storage_with_none (line 854) | def test_set_item_storage_with_none(): function test_set_item_storage_with_invalid_mode (line 860) | def test_set_item_storage_with_invalid_mode(): function test_production (line 866) | def test_production(): function test_production_with_negative_value (line 875) | def test_production_with_negative_value(): function test_production_with_negative_value_expect_none (line 884) | def test_production_with_negative_value_expect_none(): function test_production_with_negative_value_and_correct_with_none (line 891) | def test_production_with_negative_value_and_correct_with_none(): function test_production_with_none (line 900) | def test_production_with_none(): function test_production_with_nan (line 909) | def test_production_with_nan(): function test_production_with_nan_using_numpy (line 918) | def test_production_with_nan_using_numpy(): function test_production_with_nan_init (line 927) | def test_production_with_nan_init(): function test_production_with_nan_using_numpy_init (line 932) | def test_production_with_nan_using_numpy_init(): function test_storage (line 937) | def test_storage(): function test_storage_with_negative_value (line 945) | def test_storage_with_negative_value(): function test_storage_with_none (line 953) | def test_storage_with_none(): function test_storage_with_nan (line 963) | def test_storage_with_nan(): function test_storage_with_nan_using_numpy (line 973) | def test_storage_with_nan_using_numpy(): function test_storage_with_nan_init (line 983) | def test_storage_with_nan_init(): function test_storage_with_nan_using_numpy_init (line 988) | def test_storage_with_nan_using_numpy_init(): function test_update_production (line 993) | def test_update_production(): function test_update_storage (line 1002) | def test_update_storage(): function test_update_production_with_none (line 1011) | def test_update_production_with_none(): function test_update_storage_with_none (line 1020) | def test_update_storage_with_none(): function test_update_production_with_empty (line 1029) | def test_update_production_with_empty(): function test_update_storage_with_empty (line 1038) | def test_update_storage_with_empty(): function test_update_production_with_new_empty (line 1047) | def test_update_production_with_new_empty(): function test_update_storage_with_new_empty (line 1056) | def test_update_storage_with_new_empty(): function test_update_production_with_empty_and_new_none (line 1065) | def test_update_production_with_empty_and_new_none(): function test_update_storage_with_empty_and_new_none (line 1074) | def test_update_storage_with_empty_and_new_none(): function test_update_production_with_empty_and_new_empty (line 1083) | def test_update_production_with_empty_and_new_empty(): function test_update_storage_with_empty_and_new_empty (line 1092) | def test_update_storage_with_empty_and_new_empty(): function test_create_exchange_capacity_forecast (line 1101) | def test_create_exchange_capacity_forecast(): function test_exchange_capacity_forecast_create_defaults_to_published (line 1117) | def test_exchange_capacity_forecast_create_defaults_to_published(): function test_exchange_capacity_forecast_allows_one_none_capacity (line 1131) | def test_exchange_capacity_forecast_allows_one_none_capacity(): function test_raises_if_invalid_exchange_capacity_forecast (line 1154) | def test_raises_if_invalid_exchange_capacity_forecast(): function test_exchange_capacity_forecast_static_create_logs_error (line 1206) | def test_exchange_capacity_forecast_static_create_logs_error(): function test_exchange_capacity_forecast_allows_future_datetime (line 1221) | def test_exchange_capacity_forecast_allows_future_datetime(): function test_exchange_capacity_forecast_to_dict (line 1234) | def test_exchange_capacity_forecast_to_dict(): FILE: electricitymap/contrib/parsers/AEMO.py function find_document (line 41) | def find_document(session, target_datetime): function fetch_consumption_forecast (line 75) | def fetch_consumption_forecast( FILE: electricitymap/contrib/parsers/AW.py function fetch_production (line 29) | def fetch_production( FILE: electricitymap/contrib/parsers/AX.py function fetch_data (line 24) | def fetch_data(session: Session, logger: Logger): function formatted_data (line 75) | def formatted_data( function fetch_production (line 156) | def fetch_production( function fetch_consumption (line 179) | def fetch_consumption( function fetch_exchange (line 202) | def fetch_exchange( FILE: electricitymap/contrib/parsers/BB.py class JwtPublicAuth (line 26) | class JwtPublicAuth(AuthBase): method __init__ (line 27) | def __init__(self): method __call__ (line 30) | def __call__(self, r): method get_token (line 36) | def get_token(self) -> str: function session_with_auth (line 44) | def session_with_auth(session: Session) -> Session: function parse_operational_data (line 50) | def parse_operational_data(response_json) -> tuple[list[str], list[list[... function fetch_operational_data (line 55) | def fetch_operational_data( function fetch_production (line 118) | def fetch_production( function fetch_consumption (line 151) | def fetch_consumption( FILE: electricitymap/contrib/parsers/BE.py function fetch_elia (line 47) | def fetch_elia( function fetch_entsoe (line 104) | def fetch_entsoe( function fetch_production (line 133) | def fetch_production( FILE: electricitymap/contrib/parsers/BG.py function fetch_production (line 29) | def fetch_production( FILE: electricitymap/contrib/parsers/CAMMESA.py function fetch_production (line 71) | def fetch_production( function renewables_production_mix (line 96) | def renewables_production_mix( function non_renewables_production_mix (line 133) | def non_renewables_production_mix( function fetch_exchange (line 179) | def fetch_exchange( function fetch_price (line 242) | def fetch_price( FILE: electricitymap/contrib/parsers/CA_AB.py function fetch_exchange (line 61) | def fetch_exchange( function fetch_price (line 95) | def fetch_price( function fetch_production (line 125) | def fetch_production( function get_csd_report_timestamp (line 173) | def get_csd_report_timestamp(report): function _get_wind_solar_data (line 180) | def _get_wind_solar_data(session: Session, url: str) -> pd.DataFrame: function fetch_wind_solar_forecasts (line 186) | def fetch_wind_solar_forecasts( function fetch_grid_alerts (line 230) | def fetch_grid_alerts( FILE: electricitymap/contrib/parsers/CA_BC.py function fetch_consumption (line 36) | def fetch_consumption( function fetch_exchange (line 80) | def fetch_exchange( FILE: electricitymap/contrib/parsers/CA_NB.py function _get_new_brunswick_flows (line 30) | def _get_new_brunswick_flows(requests_obj): function fetch_production (line 57) | def fetch_production( function fetch_exchange (line 106) | def fetch_exchange( FILE: electricitymap/contrib/parsers/CA_NS.py function _parse_timestamp (line 31) | def _parse_timestamp(timestamp: str) -> datetime: function fetch_production (line 40) | def fetch_production( function fetch_exchange (line 116) | def fetch_exchange( FILE: electricitymap/contrib/parsers/CA_ON.py function _fetch_xml (line 89) | def _fetch_xml( function _fetch_xmls (line 110) | def _fetch_xmls( function _parse_hour (line 132) | def _parse_hour(element: ElementTree.Element) -> int: function fetch_production (line 138) | def fetch_production( function fetch_price (line 188) | def fetch_price( function fetch_exchange (line 226) | def fetch_exchange( function fetch_consumption_forecast (line 300) | def fetch_consumption_forecast( function read_adequacy_report (line 354) | def read_adequacy_report(root, logger): function read_VGForecastSummary_report (line 419) | def read_VGForecastSummary_report(root, logger): function fetch_wind_solar_forecasts (line 489) | def fetch_wind_solar_forecasts( function fetch_grid_alerts (line 528) | def fetch_grid_alerts( FILE: electricitymap/contrib/parsers/CA_QC.py function fetch_production (line 35) | def fetch_production( function fetch_consumption (line 91) | def fetch_consumption( function _fetch_quebec_production (line 111) | def _fetch_quebec_production( function _fetch_quebec_consumption (line 124) | def _fetch_quebec_consumption( FILE: electricitymap/contrib/parsers/CA_SK.py function _request (line 37) | def _request( function fetch_production (line 62) | def fetch_production( function fetch_consumption (line 93) | def fetch_consumption( FILE: electricitymap/contrib/parsers/CEB.py function fetch_production (line 38) | def fetch_production( FILE: electricitymap/contrib/parsers/CENACE.py function parse_date (line 81) | def parse_date(date, hour): function fetch_csv_for_date (line 88) | def fetch_csv_for_date(dt, session: Session | None = None): function convert_production (line 165) | def convert_production(series: pd.Series) -> ProductionMix: function fetch_production (line 176) | def fetch_production( function fetch_MX_exchange (line 223) | def fetch_MX_exchange(sorted_zone_keys: ZoneKey, s: Session) -> float: function fetch_exchange (line 249) | def fetch_exchange( function fetch_consumption (line 277) | def fetch_consumption( FILE: electricitymap/contrib/parsers/CH.py function get_solar_capacity_at (line 13) | def get_solar_capacity_at(target_datetime: datetime) -> float: function fetch_swiss_exchanges (line 56) | def fetch_swiss_exchanges(session, target_datetime, logger): function fetch_swiss_consumption (line 80) | def fetch_swiss_consumption( function fetch_production (line 94) | def fetch_production( FILE: electricitymap/contrib/parsers/CL.py function production_processor_historical (line 33) | def production_processor_historical(raw_data): function fetch_production (line 66) | def fetch_production( FILE: electricitymap/contrib/parsers/CNDC.py function extract_xsrf_token (line 38) | def extract_xsrf_token(html): function get_datetime (line 43) | def get_datetime(query_date: datetime, hour: int) -> datetime: function _check_response (line 53) | def _check_response(response, context: str = ""): function fetch_data (line 73) | def fetch_data( function parse_generation_forecast (line 133) | def parse_generation_forecast( function parser_production_breakdown (line 155) | def parser_production_breakdown( function fetch_production (line 192) | def fetch_production( function fetch_generation_forecast (line 206) | def fetch_generation_forecast( FILE: electricitymap/contrib/parsers/CO.py function fetch_consumption (line 60) | def fetch_consumption( function _fetch_live_consumption (line 74) | def _fetch_live_consumption( function _fetch_historical_consumption (line 101) | def _fetch_historical_consumption( function fetch_production (line 144) | def fetch_production( function fetch_price (line 234) | def fetch_price( FILE: electricitymap/contrib/parsers/CR.py function _parse_exchange_data (line 45) | def _parse_exchange_data( function fetch_production (line 62) | def fetch_production( function fetch_exchange (line 129) | def fetch_exchange( FILE: electricitymap/contrib/parsers/CY.py class CyprusParser (line 27) | class CyprusParser: method __init__ (line 38) | def __init__(self, session, logger: Logger = getLogger(__name__)): method warn (line 42) | def warn(self, text: str) -> None: method parse_capacity (line 45) | def parse_capacity(self, html) -> dict: method parse_production (line 55) | def parse_production(self, html, capacity: dict) -> list: method fetch_production (line 96) | def fetch_production(self, target_datetime: datetime | None) -> list: function fetch_production (line 126) | def fetch_production( FILE: electricitymap/contrib/parsers/CZ.py function get_mapper (line 46) | def get_mapper(xmlload): function make_request (line 56) | def make_request(session, payload, zone_key): function get_target_datetime (line 70) | def get_target_datetime(dt: datetime | None) -> datetime: function __get_exchange_data (line 77) | def __get_exchange_data( function fetch_production (line 144) | def fetch_production( function fetch_exchange (line 207) | def fetch_exchange( function fetch_exchange_forecast (line 219) | def fetch_exchange_forecast( FILE: electricitymap/contrib/parsers/DK.py function fetch_data (line 44) | def fetch_data( function flow (line 100) | def flow(sorted_keys: ZoneKey, datapoint: dict) -> int | float | None: function fetch_exchange (line 114) | def fetch_exchange( function fetch_wind_solar_forecasts (line 148) | def fetch_wind_solar_forecasts( FILE: electricitymap/contrib/parsers/DO.py function get_datetime_from_hour (line 95) | def get_datetime_from_hour(now: datetime, hour: int) -> datetime: function get_data (line 99) | def get_data(session: Session | None = None) -> list[list[str]]: function floater (line 123) | def floater(item): function chunker (line 135) | def chunker(big_lst) -> dict: function data_formatter (line 156) | def data_formatter(data: list[list[str]]) -> list[list[str]]: function correct_solar_production (line 189) | def correct_solar_production(production: pd.DataFrame) -> pd.DataFrame: function extract_renewable_production (line 206) | def extract_renewable_production(data: list[list[str]], dt: datetime) ->... function extract_thermal_production (line 228) | def extract_thermal_production(data: list[list[str]], dt: datetime) -> p... function fetch_production (line 250) | def fetch_production( FILE: electricitymap/contrib/parsers/EC.py function _decode_bdata (line 71) | def _decode_bdata(b64: str) -> list: function _get_y_values (line 78) | def _get_y_values(trace: dict) -> list: function _parse_traces (line 91) | def _parse_traces(html: str) -> dict: function _parse_page_date (line 114) | def _parse_page_date(html: str) -> date: function _str_to_dt (line 131) | def _str_to_dt(time_str: str, today: date) -> datetime: function fetch_production (line 140) | def fetch_production( function fetch_consumption (line 198) | def fetch_consumption( FILE: electricitymap/contrib/parsers/ECO2MIX.py function query (line 81) | def query(url_type_arg, session: Session, target_datetime: datetime | No... function query_exchange (line 101) | def query_exchange(session: Session, target_datetime: datetime | None): function query_production (line 107) | def query_production(session: Session, target_datetime: datetime | None): function parse_production_to_df (line 113) | def parse_production_to_df(text): function format_production_df (line 151) | def format_production_df(df, zone_key): function fetch_production (line 188) | def fetch_production( function parse_exchange_to_df (line 206) | def parse_exchange_to_df(text): function format_exchange_df (line 269) | def format_exchange_df(df, sorted_zone_keys: ZoneKey, logger: Logger): function fetch_exchange (line 302) | def fetch_exchange( FILE: electricitymap/contrib/parsers/EIA.py function fetch_production (line 391) | def fetch_production( function fetch_consumption (line 407) | def fetch_consumption( function fetch_consumption_forecast (line 433) | def fetch_consumption_forecast( function create_production_storage (line 458) | def create_production_storage( function fetch_production_mix (line 497) | def fetch_production_mix( function fetch_exchange (line 639) | def fetch_exchange( function _fetch_any (line 693) | def _fetch_any( function _fetch_historical (line 723) | def _fetch_historical( function _fetch_forecast (line 743) | def _fetch_forecast( function _parse_hourly_interval (line 765) | def _parse_hourly_interval(period: str): FILE: electricitymap/contrib/parsers/ELEXON.py function zulu_to_utc (line 119) | def zulu_to_utc(datetime_str: str) -> str: function query_elexon (line 123) | def query_elexon(url: str, session: Session, params: dict) -> list | dict: function parse_datetime (line 133) | def parse_datetime( function query_IM_exchange (line 146) | def query_IM_exchange( function get_event_value (line 177) | def get_event_value(event: dict[str, Any], key: str) -> float | None: function parse_production (line 183) | def parse_production( function _create_eso_historical_demand_index (line 244) | def _create_eso_historical_demand_index(session: Session) -> dict[int, s... function query_additional_eso_data (line 259) | def query_additional_eso_data( function parse_eso_production (line 278) | def parse_eso_production( function parse_eso_hydro_storage (line 317) | def parse_eso_hydro_storage( function query_production_fuelhh (line 338) | def query_production_fuelhh( function query_and_merge_production_fuelhh_and_eso (line 359) | def query_and_merge_production_fuelhh_and_eso( function query_exchange (line 374) | def query_exchange( function query_actual_demand (line 414) | def query_actual_demand( function parse_demand_data (line 430) | def parse_demand_data( function fetch_consumption (line 454) | def fetch_consumption( function fetch_exchange (line 482) | def fetch_exchange( function fetch_production (line 512) | def fetch_production( function validate_bmrs_data (line 541) | def validate_bmrs_data(data: ProductionBreakdownList): FILE: electricitymap/contrib/parsers/ENERCAL.py function fetch_production (line 21) | def fetch_production( FILE: electricitymap/contrib/parsers/ENTE.py function floor_to_minute (line 39) | def floor_to_minute(dt: datetime) -> datetime: function fetch_production (line 43) | def fetch_production( function extract_exchange (line 68) | def extract_exchange(raw_data, exchange) -> float | None: function fetch_exchange (line 87) | def fetch_exchange( FILE: electricitymap/contrib/parsers/ENTSOE.py class EntsoeTypeEnum (line 77) | class EntsoeTypeEnum(str, Enum): method __str__ (line 87) | def __str__(self) -> str: class EntsoeDocumentTypeEnum (line 91) | class EntsoeDocumentTypeEnum(str, Enum): function query_ENTSOE (line 279) | def query_ENTSOE( function query_consumption (line 335) | def query_consumption( function query_production (line 356) | def query_production( function query_exchange (line 376) | def query_exchange( function query_exchange_forecast (line 397) | def query_exchange_forecast( function query_exchange_capacity_forecast (line 420) | def query_exchange_capacity_forecast( function query_price (line 452) | def query_price( function query_generation_forecast (line 479) | def query_generation_forecast( function query_consumption_forecast (line 501) | def query_consumption_forecast( function query_wind_solar_production_forecast (line 523) | def query_wind_solar_production_forecast( function zulu_to_utc (line 558) | def zulu_to_utc(datetime_string: str) -> str: function datetime_from_position (line 564) | def datetime_from_position( function parse_scalar (line 571) | def parse_scalar( function parse_production (line 592) | def parse_production( function _get_raw_production_events (line 631) | def _get_raw_production_events(soup: BeautifulSoup) -> list[dict[str, An... function _create_production_and_storage_mixes (line 654) | def _create_production_and_storage_mixes( function _get_expected_production_group_length (line 692) | def _get_expected_production_group_length( function _group_production_data_by_datetime (line 704) | def _group_production_data_by_datetime( class IntPoint (line 721) | class IntPoint(NamedTuple): class DateTimePoint (line 728) | class DateTimePoint(NamedTuple): class Period (line 736) | class Period: class TimeSeries (line 746) | class TimeSeries: function _iter_points (line 753) | def _iter_points( function _resolution_to_timedelta (line 773) | def _resolution_to_timedelta(resolution: str) -> timedelta: function _iter_periods (line 791) | def _iter_periods( function _get_datetime_value_from_timeseries (line 821) | def _get_datetime_value_from_timeseries( function _reverse_A3_curve_compression_for_period (line 858) | def _reverse_A3_curve_compression_for_period( function parse_exchange (line 891) | def parse_exchange( function parse_exchange_forecast (line 913) | def parse_exchange_forecast( function _merge_exchange_capacity_forecasts (line 948) | def _merge_exchange_capacity_forecasts( function parse_exchange_capacity_forecast (line 986) | def parse_exchange_capacity_forecast( function parse_prices (line 1036) | def parse_prices( function fetch_production (line 1061) | def fetch_production( function get_raw_exchange (line 1100) | def get_raw_exchange( function fetch_exchange (line 1253) | def fetch_exchange( function fetch_exchange_forecast (line 1274) | def fetch_exchange_forecast( function fetch_price (line 1296) | def fetch_price( function fetch_price_intraday (line 1326) | def fetch_price_intraday( function fetch_generation_forecast (line 1368) | def fetch_generation_forecast( function fetch_consumption (line 1428) | def fetch_consumption( function fetch_consumption_forecast (line 1482) | def fetch_consumption_forecast( function _fetch_wind_solar_forecasts (line 1534) | def _fetch_wind_solar_forecasts( function fetch_wind_solar_forecasts (line 1574) | def fetch_wind_solar_forecasts( function fetch_wind_solar_forecasts_day_ahead (line 1618) | def fetch_wind_solar_forecasts_day_ahead( function fetch_wind_solar_forecasts_intraday (line 1634) | def fetch_wind_solar_forecasts_intraday( function fetch_wind_solar_forecasts_current (line 1650) | def fetch_wind_solar_forecasts_current( function _fetch_exchange_capacity_forecasts (line 1665) | def _fetch_exchange_capacity_forecasts( function fetch_exchange_capacity_forecasts_day_ahead (line 1743) | def fetch_exchange_capacity_forecasts_day_ahead( function fetch_exchange_capacity_forecasts_week_ahead (line 1762) | def fetch_exchange_capacity_forecasts_week_ahead( function fetch_exchange_capacity_forecasts_month_ahead (line 1781) | def fetch_exchange_capacity_forecasts_month_ahead( FILE: electricitymap/contrib/parsers/ERP_PGCB.py function table_entry_to_float (line 53) | def table_entry_to_float(entry: str): function parse_table_body (line 68) | def parse_table_body(table_body: Tag) -> list[dict]: function verify_table_header (line 114) | def verify_table_header(table_header: Tag): function query (line 133) | def query( function fetch_production (line 196) | def fetch_production( function fetch_consumption (line 248) | def fetch_consumption( function fetch_exchange (line 283) | def fetch_exchange( FILE: electricitymap/contrib/parsers/ES.py function check_valid_parameters (line 221) | def check_valid_parameters( function check_known_key (line 254) | def check_known_key(key: str, logger: Logger): function get_url (line 260) | def get_url(zone_key: ZoneKey, date: str) -> str: function get_ree_data (line 268) | def get_ree_data( function parse_date (line 289) | def parse_date(str_date, tz): function fetch_and_preprocess_data (line 314) | def fetch_and_preprocess_data( function fetch_consumption (line 340) | def fetch_consumption( function fetch_production (line 362) | def fetch_production( function fetch_exchange (line 413) | def fetch_exchange( FILE: electricitymap/contrib/parsers/ESIOS.py function get_exchange_multiplication_factor (line 34) | def get_exchange_multiplication_factor( function format_url (line 58) | def format_url(target_datetime: datetime, ID: str): function fetch_exchange (line 66) | def fetch_exchange( FILE: electricitymap/contrib/parsers/ESKOM.py function get_url (line 54) | def get_url() -> str: function fetch_production (line 60) | def fetch_production( FILE: electricitymap/contrib/parsers/ESTADISTICO_UT.py function _fetch_data (line 42) | def _fetch_data(session: Session, target_datetime: datetime | None = Non... function _parse_data (line 105) | def _parse_data(data: dict) -> list[dict]: function _process_data (line 151) | def _process_data( function fetch_production (line 179) | def fetch_production( FILE: electricitymap/contrib/parsers/FO.py function _fetch_production_historical (line 45) | def _fetch_production_historical( function _fetch_production_live (line 130) | def _fetch_production_live( function fetch_production (line 196) | def fetch_production( FILE: electricitymap/contrib/parsers/FR.py function get_data (line 47) | def get_data(session: Session, target_datetime: datetime) -> pd.DataFrame: function request_data (line 60) | def request_data( function reindex_data (line 98) | def reindex_data(df_to_reindex: pd.DataFrame) -> pd.DataFrame: function fetch_production (line 118) | def fetch_production( function fetch_consumption (line 169) | def fetch_consumption( FILE: electricitymap/contrib/parsers/FR_O.py function generate_url (line 112) | def generate_url(zone_key, target_datetime): function fetch_data (line 118) | def fetch_data( function fetch_production (line 188) | def fetch_production( function fetch_price (line 234) | def fetch_price( FILE: electricitymap/contrib/parsers/GB.py function fetch_price (line 66) | def fetch_price( function fetch_production (line 159) | def fetch_production( function _fetch_all_storage_data (line 250) | def _fetch_all_storage_data( function _rows_to_df (line 295) | def _rows_to_df(rows: list[dict]) -> pd.DataFrame: function _build_storage_lookup (line 331) | def _build_storage_lookup( function _compute_storage_mix (line 396) | def _compute_storage_mix( function _compute_storage_for_units (line 439) | def _compute_storage_for_units( function _extract_data_rows (line 485) | def _extract_data_rows(payload: dict | list) -> list[dict]: function _get_boalf_value_at_minute (line 492) | def _get_boalf_value_at_minute( function _get_level_at_minute (line 532) | def _get_level_at_minute(records: list[dict], minute_dt: datetime) -> fl... function _compute_unit_storage_mw (line 555) | def _compute_unit_storage_mw( function _fetch_storage_dataset (line 635) | def _fetch_storage_dataset( function get_hydro_storage_units (line 650) | def get_hydro_storage_units(session: Session, zone_key: ZoneKey) -> list... function get_battery_units (line 667) | def get_battery_units(session: Session, zone_key: ZoneKey) -> list[str]: FILE: electricitymap/contrib/parsers/GCCIA.py function fetch_consumption (line 48) | def fetch_consumption( FILE: electricitymap/contrib/parsers/GSO.py function get_api_data (line 47) | def get_api_data(session: Session, url, data): function fetch_consumption (line 57) | def fetch_consumption( function fetch_exchange (line 92) | def fetch_exchange( function fetch_production (line 166) | def fetch_production( FILE: electricitymap/contrib/parsers/GT.py class ApiKind (line 52) | class ApiKind(enum.Enum): function _get_api_data (line 57) | def _get_api_data( function fetch_consumption (line 133) | def fetch_consumption( function fetch_production (line 170) | def fetch_production( FILE: electricitymap/contrib/parsers/HN.py function get_production_data_by_type (line 45) | def get_production_data_by_type( function get_exchange_data (line 84) | def get_exchange_data(session: Session) -> tuple[list[Any], dict[str, st... function safe_float_conversion (line 98) | def safe_float_conversion(value: str | None) -> float | None: function extract_date_from_csv (line 110) | def extract_date_from_csv(CSV_data: list) -> str | None: function create_production_breakdown_list (line 120) | def create_production_breakdown_list( function parse_exchange_data_by_hour (line 155) | def parse_exchange_data_by_hour( function get_production_values (line 194) | def get_production_values( function get_datetime (line 230) | def get_datetime(date: str | None, hour: int) -> datetime | None: function fetch_production (line 244) | def fetch_production( function fetch_exchange (line 261) | def fetch_exchange( FILE: electricitymap/contrib/parsers/IEMOP.py function _validate_resource_name_to_mode_mapping (line 465) | def _validate_resource_name_to_mode_mapping(): class MarketReportsItem (line 473) | class MarketReportsItem(NamedTuple): function get_all_market_reports_items (line 479) | def get_all_market_reports_items( function filter_reports_items (line 517) | def filter_reports_items( function download_production_market_reports_items (line 550) | def download_production_market_reports_items( function filter_for_zone (line 606) | def filter_for_zone(df: pd.DataFrame, zone_key: ZoneKey) -> pd.DataFrame: function filter_valid_values (line 611) | def filter_valid_values(df: pd.DataFrame, logger: Logger) -> pd.DataFrame: function match_resources_to_modes (line 630) | def match_resources_to_modes(df: pd.DataFrame) -> pd.DataFrame: function aggregate_per_datetime_mode (line 643) | def aggregate_per_datetime_mode(df: pd.DataFrame) -> pd.DataFrame: function pivot_per_mode (line 651) | def pivot_per_mode(df: pd.DataFrame) -> pd.DataFrame: function download_exchange_market_reports_items (line 677) | def download_exchange_market_reports_items( function convert_column_to_datetime (line 705) | def convert_column_to_datetime(df: pd.DataFrame, datetime_column: str) -... function fetch_production (line 718) | def fetch_production( function fetch_exchange (line 762) | def fetch_exchange( FILE: electricitymap/contrib/parsers/IL.py function fetch_all (line 39) | def fetch_all() -> list: function fetch_noga_iso_data (line 69) | def fetch_noga_iso_data(session: Session, logger: Logger): function fetch_production (line 82) | def fetch_production( function fetch_total_production (line 112) | def fetch_total_production( function fetch_consumption (line 135) | def fetch_consumption( FILE: electricitymap/contrib/parsers/IN.py function fetch_consumption_from_meritindia (line 158) | def fetch_consumption_from_meritindia( function fetch_npp_production (line 200) | def fetch_npp_production( function fetch_consumption (line 247) | def fetch_consumption( function format_ren_production_data (line 261) | def format_ren_production_data( function fetch_cea_production (line 313) | def fetch_cea_production( function fetch_grid_india_report (line 376) | def fetch_grid_india_report( function get_daily_generation_table (line 459) | def get_daily_generation_table(content: bytes) -> pd.DataFrame: function get_wind_solar (line 526) | def get_wind_solar(content: bytes, zone_key: str) -> pd.DataFrame: function parse_daily_production_grid_india_report (line 589) | def parse_daily_production_grid_india_report( function parse_15m_production_grid_india_report (line 633) | def parse_15m_production_grid_india_report( function get_production_breakdown (line 707) | def get_production_breakdown(content: bytes, zone_key: str) -> pd.DataFr... function compute_zone_key_share_per_mode_out_of_total (line 765) | def compute_zone_key_share_per_mode_out_of_total( function scale_15min_production (line 794) | def scale_15min_production(content: bytes, scaling_factor: float) -> pd.... function parse_daily_total_production_grid_india_report (line 832) | def parse_daily_total_production_grid_india_report( function parse_total_production_15min_grid_india_report (line 849) | def parse_total_production_15min_grid_india_report( function fetch_production (line 864) | def fetch_production( function parse_production_from_cea_npp (line 924) | def parse_production_from_cea_npp( function daily_to_hourly_production_data (line 968) | def daily_to_hourly_production_data( FILE: electricitymap/contrib/parsers/IN_DL.py function fetch_consumption (line 27) | def fetch_consumption( function fetch_production (line 58) | def fetch_production( FILE: electricitymap/contrib/parsers/IN_EA.py function get_fetch_function (line 37) | def get_fetch_function( function extract_international_exchanges (line 58) | def extract_international_exchanges( function extract_interregional_exchanges (line 76) | def extract_interregional_exchanges( function fetch_exchange (line 95) | def fetch_exchange( FILE: electricitymap/contrib/parsers/IN_HP.py class GenType (line 21) | class GenType(Enum): function fetch_production (line 74) | def fetch_production( function get_state_gen (line 102) | def get_state_gen(soup, logger: Logger): function get_isgs_gen (line 123) | def get_isgs_gen(soup, logger: Logger): function get_table_rows (line 151) | def get_table_rows(soup, container_class, table_name): function combine_gen (line 162) | def combine_gen(gen1, gen2): function fetch_consumption (line 179) | def fetch_consumption( function fetch_price (line 191) | def fetch_price( FILE: electricitymap/contrib/parsers/IN_KA.py function fetch_consumption (line 12) | def fetch_consumption( function fetch_production (line 39) | def fetch_production( FILE: electricitymap/contrib/parsers/IN_MH.py function RGBtoBW (line 105) | def RGBtoBW(pil_image): function read_image_sections (line 113) | def read_image_sections(location, source): function fetch_production (line 121) | def fetch_production( FILE: electricitymap/contrib/parsers/IN_PB.py function fetch_production (line 24) | def fetch_production( function fetch_consumption (line 65) | def fetch_consumption( FILE: electricitymap/contrib/parsers/IN_UT.py function get_connection (line 49) | def get_connection(soup, connection_name): function get_datetime (line 57) | def get_datetime(soup, zone_key, logger): function get_production_values (line 70) | def get_production_values(soup): function fetch_exchange (line 82) | def fetch_exchange( function fetch_production (line 115) | def fetch_production( FILE: electricitymap/contrib/parsers/IN_WE.py function _get_hour_dts (line 46) | def _get_hour_dts(dt: datetime): function _fetch_data (line 62) | def _fetch_data( function _get_df_for_hour (line 105) | def _get_df_for_hour(kind: str, data: dict, hour: int) -> pd.DataFrame: function _get_mean_hourly_net_flow (line 113) | def _get_mean_hourly_net_flow( function _get_mean_hourly_consumption (line 138) | def _get_mean_hourly_consumption( function fetch_exchange (line 162) | def fetch_exchange( function fetch_consumption (line 201) | def fetch_consumption( FILE: electricitymap/contrib/parsers/JAO.py class JaoRegion (line 54) | class JaoRegion(str, Enum): method __str__ (line 60) | def __str__(self) -> str: class JaoDataset (line 64) | class JaoDataset(str, Enum): method __str__ (line 80) | def __str__(self) -> str: function _em_to_jao_zone (line 112) | def _em_to_jao_zone(em_zone: str) -> str: function _format_utc (line 117) | def _format_utc(dt: datetime) -> str: function _parse_utc (line 122) | def _parse_utc(value: str) -> datetime: function _target_window (line 127) | def _target_window( function _query_jao (line 153) | def _query_jao( function _extract_border_capacity (line 199) | def _extract_border_capacity( function _extract_border_net_flow (line 235) | def _extract_border_net_flow( function _fetch_per_border_dataset (line 275) | def _fetch_per_border_dataset( function fetch_shadow_auction_atc_day_ahead (line 294) | def fetch_shadow_auction_atc_day_ahead( function fetch_core_external_atc_day_ahead (line 319) | def fetch_core_external_atc_day_ahead( function fetch_core_max_bex_day_ahead (line 341) | def fetch_core_max_bex_day_ahead( function fetch_nordic_max_bex_day_ahead (line 365) | def fetch_nordic_max_bex_day_ahead( function fetch_core_scheduled_exchanges_day_ahead (line 389) | def fetch_core_scheduled_exchanges_day_ahead( function fetch_nordic_max_bflow_day_ahead (line 417) | def fetch_nordic_max_bflow_day_ahead( FILE: electricitymap/contrib/parsers/JP.py function get_wind_capacity (line 50) | def get_wind_capacity(datetime: datetime, zone_key, logger: Logger): function fetch_production (line 68) | def fetch_production( function fetch_production_df (line 109) | def fetch_production_df( function fetch_consumption_df (line 157) | def fetch_consumption_df( function fetch_price (line 217) | def fetch_price( function parse_dt (line 283) | def parse_dt(row): function read_csv_forecast (line 306) | def read_csv_forecast( function fetch_consumption_forecast (line 418) | def fetch_consumption_forecast( function fetch_generation_forecast (line 483) | def fetch_generation_forecast( FILE: electricitymap/contrib/parsers/JP_KN.py function fetch_production (line 24) | def fetch_production( function get_image_text (line 63) | def get_image_text(img_url, lang, width=None): function extract_capacity (line 81) | def extract_capacity(tr): function extract_operation_percentage (line 95) | def extract_operation_percentage(tr): function extract_time (line 113) | def extract_time(soup): function get_nuclear_production (line 138) | def get_nuclear_production(): FILE: electricitymap/contrib/parsers/JP_KY.py function fetch_production (line 22) | def fetch_production( FILE: electricitymap/contrib/parsers/JP_SK.py function fetch_production (line 22) | def fetch_production( function get_nuclear_power_image_url (line 66) | def get_nuclear_power_image_url(session: Session) -> str: function get_nuclear_power_value_and_timestamp_from_image_url (line 78) | def get_nuclear_power_value_and_timestamp_from_image_url( FILE: electricitymap/contrib/parsers/KPX.py function parse_consumption_data (line 59) | def parse_consumption_data( function fetch_consumption (line 108) | def fetch_consumption( function fetch_price (line 131) | def fetch_price( function parse_chart_prod_data (line 187) | def parse_chart_prod_data( function get_real_time_prod_data (line 233) | def get_real_time_prod_data( function get_historical_prod_data (line 243) | def get_historical_prod_data( function fetch_production (line 276) | def fetch_production( FILE: electricitymap/contrib/parsers/KW.py class _CustomHttpAdapter (line 33) | class _CustomHttpAdapter(requests.adapters.HTTPAdapter): method __init__ (line 36) | def __init__(self, ssl_context=None, **kwargs): method init_poolmanager (line 40) | def init_poolmanager(self, connections, maxsize, block=False): function _patch_session_for_legacy_connect (line 49) | def _patch_session_for_legacy_connect(session): function fetch_consumption (line 56) | def fetch_consumption( FILE: electricitymap/contrib/parsers/MD.py class ArchiveDatapoint (line 71) | class ArchiveDatapoint(NamedTuple): function _get_archive_data (line 88) | def _get_archive_data( function fetch_price (line 151) | def fetch_price( function fetch_consumption (line 193) | def fetch_consumption( function fetch_production (line 217) | def fetch_production( function _fetch_exchange (line 250) | def _fetch_exchange( function fetch_exchange (line 312) | def fetch_exchange( function fetch_exchange_forecast (line 332) | def fetch_exchange_forecast( FILE: electricitymap/contrib/parsers/MN.py function _fetch_and_parse (line 53) | def _fetch_and_parse(session: Session) -> dict[str, Any]: function fetch_production (line 95) | def fetch_production( function fetch_consumption (line 122) | def fetch_consumption( FILE: electricitymap/contrib/parsers/NED.py class NedType (line 43) | class NedType(Enum): class NedActivity (line 56) | class NedActivity(Enum): class NedGranularity (line 61) | class NedGranularity(Enum): class NedGranularityTimezone (line 70) | class NedGranularityTimezone(Enum): class NedClassification (line 75) | class NedClassification(Enum): class NedPoint (line 80) | class NedPoint(Enum): function _kwh_to_mw (line 85) | def _kwh_to_mw(kwh: float, granularity: int) -> float: function call_api (line 119) | def call_api(target_datetime: datetime, forecast: bool = False): function _get_entsoe_production_data (line 178) | def _get_entsoe_production_data( function format_data (line 203) | def format_data( function fetch_production (line 272) | def fetch_production( function fetch_production_forecast (line 303) | def fetch_production_forecast( FILE: electricitymap/contrib/parsers/NG.py function get_data (line 36) | def get_data(session: Session, logger: Logger, timestamp: datetime): function fetch_production (line 79) | def fetch_production( FILE: electricitymap/contrib/parsers/NI.py function extract_text (line 42) | def extract_text(full_text: str, start_text: str, end_text: str | None =... function fetch_production (line 62) | def fetch_production( function fetch_exchange (line 111) | def fetch_exchange( function fetch_price (line 167) | def fetch_price( FILE: electricitymap/contrib/parsers/NL.py function fetch_production (line 18) | def fetch_production( function get_wind_capacities (line 162) | def get_wind_capacities() -> pd.DataFrame: function get_solar_capacities (line 185) | def get_solar_capacities() -> pd.DataFrame: function _get_capacity_at (line 221) | def _get_capacity_at(date: datetime, mode: str, capacity_df: pd.DataFram... function get_solar_capacity_at (line 238) | def get_solar_capacity_at(date: datetime, solar_capacity_df: pd.DataFram... function get_wind_capacity_at (line 242) | def get_wind_capacity_at(date: datetime, wind_capacity_df: pd.DataFrame)... FILE: electricitymap/contrib/parsers/NO-NO4_SE.py function fetch_data (line 25) | def fetch_data( function fetch_exchange (line 97) | def fetch_exchange( function fetch_exchange_forecast (line 115) | def fetch_exchange_forecast( FILE: electricitymap/contrib/parsers/NORDPOOL.py class NordpoolToken (line 23) | class NordpoolToken: method is_expired (line 28) | def is_expired(self) -> bool: class NORDPOOL_API_ENDPOINT (line 37) | class NORDPOOL_API_ENDPOINT(Enum): class MARKET_TYPE (line 42) | class MARKET_TYPE(Enum): class CURRENCY (line 47) | class CURRENCY(Enum): function _generate_new_nordpool_token (line 87) | def _generate_new_nordpool_token(session: Session) -> NordpoolToken: function _handle_status_code (line 114) | def _handle_status_code(response: Response, logger: Logger) -> Response: function zulu_to_utc (line 135) | def zulu_to_utc(datetime_string: str) -> str: function _query_nordpool (line 140) | def _query_nordpool( function _parse_price (line 161) | def _parse_price(response: Response, logger: Logger) -> PriceList: function fetch_price (line 177) | def fetch_price( function _parse_exchange (line 210) | def _parse_exchange(response: Response, logger: Logger, target_zone) -> ... function fetch_exchange (line 233) | def fetch_exchange( FILE: electricitymap/contrib/parsers/NTESMO.py class Generator (line 36) | class Generator(TypedDict): function _scan_daily_report_urls (line 83) | def _scan_daily_report_urls( function _find_link_to_daily_report (line 122) | def _find_link_to_daily_report(target_datetime: datetime, session: Sessi... function get_daily_report_data (line 165) | def get_daily_report_data( function extract_consumption_and_price_data (line 187) | def extract_consumption_and_price_data(file: bytes) -> pd.DataFrame: function parse_consumption_and_price (line 193) | def parse_consumption_and_price( function parse_production_mix (line 222) | def parse_production_mix( function fetch_consumption (line 272) | def fetch_consumption( function fetch_price (line 299) | def fetch_price( function fetch_production (line 326) | def fetch_production( function fetch_consumption_forecast (line 357) | def fetch_consumption_forecast( FILE: electricitymap/contrib/parsers/NZ.py function fetch (line 28) | def fetch(session: Session | None = None): function fetch_price (line 40) | def fetch_price( function fetch_production (line 86) | def fetch_production( FILE: electricitymap/contrib/parsers/ONS.py function get_data (line 49) | def get_data(session: Session | None): function production_processor (line 57) | def production_processor( function fetch_production (line 77) | def fetch_production( function get_exchange_flow (line 100) | def get_exchange_flow(sorted_zone_keys: ZoneKey, raw_data: dict) -> float: function fetch_exchange (line 106) | def fetch_exchange( FILE: electricitymap/contrib/parsers/OPENNEM.py function fetch_datasets (line 111) | def fetch_datasets( function generate_url (line 132) | def generate_url(zone_key: ZoneKey, target_datetime: datetime | None) ->... function process_production_datasets (line 149) | def process_production_datasets( function fetch_production (line 294) | def fetch_production( function fetch_price (line 325) | def fetch_price( function fetch_exchange (line 348) | def fetch_exchange( function _fetch_regular_exchange (line 391) | def _fetch_regular_exchange( function _fetch_au_nsw_au_vic_exchange (line 444) | def _fetch_au_nsw_au_vic_exchange( function _build_network_url (line 559) | def _build_network_url( function _fetch_network_datasets (line 596) | def _fetch_network_datasets( function _build_price_list (line 638) | def _build_price_list(datasets, zone_key: ZoneKey, logger: Logger) -> Pr... FILE: electricitymap/contrib/parsers/PA.py function _localise_spanish_date (line 141) | def _localise_spanish_date(date: str) -> str: function extract_pie_chart_data (line 153) | def extract_pie_chart_data(html): function sum_thermal_units (line 164) | def sum_thermal_units(soup) -> float: function fetch_production (line 195) | def fetch_production( function fetch_exchange (line 292) | def fetch_exchange( function fetch_consumption (line 369) | def fetch_consumption( FILE: electricitymap/contrib/parsers/PE.py function parse_datetime (line 34) | def parse_datetime(dt: str): function fetch_production (line 41) | def fetch_production( function _get_production_data (line 86) | def _get_production_data(session: Session, target_datetime: datetime) ->... FILE: electricitymap/contrib/parsers/PF.py function fetch_production (line 24) | def fetch_production( FILE: electricitymap/contrib/parsers/PrinceEdwardIsland.py function _parse_power (line 26) | def _parse_power(text: str) -> float: function _get_event (line 30) | def _get_event(session: Session): function fetch_production (line 56) | def fetch_production( function fetch_exchange (line 91) | def fetch_exchange( FILE: electricitymap/contrib/parsers/RU.py function fetch_production (line 79) | def fetch_production( function response_checker (line 161) | def response_checker(json_content) -> bool: function fetch_exchange (line 179) | def fetch_exchange( FILE: electricitymap/contrib/parsers/SE.py function fetch_production (line 21) | def fetch_production( FILE: electricitymap/contrib/parsers/SEAPA.py function get_value (line 18) | def get_value(data: dict, key: str) -> float: function fetch_production (line 22) | def fetch_production( FILE: electricitymap/contrib/parsers/SG.py function get_solar (line 65) | def get_solar(session: Session, logger: Logger) -> float | None: function parse_megawatt_value (line 89) | def parse_megawatt_value(val) -> int: function parse_percent (line 94) | def parse_percent(val) -> float: function parse_price (line 99) | def parse_price(price_str) -> float: function find_first_list_item_by_key_value (line 105) | def find_first_list_item_by_key_value( function sg_period_to_hour (line 128) | def sg_period_to_hour(period_str) -> float: function sg_data_to_datetime (line 137) | def sg_data_to_datetime(data): function fetch_production (line 146) | def fetch_production( function fetch_price (line 218) | def fetch_price( function __detect_datetime_from_solar_image (line 266) | def __detect_datetime_from_solar_image(solar_image, logger: Logger): function __detect_output_from_solar_image (line 292) | def __detect_output_from_solar_image(solar_image, logger: Logger): function __preprocess_image_for_ocr (line 326) | def __preprocess_image_for_ocr(img): FILE: electricitymap/contrib/parsers/SMARTGRIDDASHBOARD.py function get_datetime_params (line 50) | def get_datetime_params(datetime: datetime) -> dict: function parse_datetime (line 57) | def parse_datetime(datetime_str: str) -> datetime: function fetch_data (line 61) | def fetch_data( function parse_consumption (line 97) | def parse_consumption( function fetch_production (line 141) | def fetch_production( function fetch_exchange (line 218) | def fetch_exchange( function fetch_consumption (line 280) | def fetch_consumption( function fetch_consumption_forecast (line 297) | def fetch_consumption_forecast( function fetch_wind_solar_forecasts (line 314) | def fetch_wind_solar_forecasts( function fetch_total_generation (line 372) | def fetch_total_generation( FILE: electricitymap/contrib/parsers/TAIPOWER.py function fetch_production (line 22) | def fetch_production( FILE: electricitymap/contrib/parsers/TH.py function _as_localtime (line 31) | def _as_localtime(dt: datetime) -> datetime: function _seconds_to_time (line 42) | def _seconds_to_time(target_datetime: datetime, seconds_in_day: int) -> ... function _fetch_data (line 49) | def _fetch_data( function fetch_production (line 98) | def fetch_production( function fetch_consumption (line 122) | def fetch_consumption( function fetch_generation_forecast (line 149) | def fetch_generation_forecast( function fetch_price (line 172) | def fetch_price( FILE: electricitymap/contrib/parsers/TR.py function fetch_ticket_TGT (line 55) | def fetch_ticket_TGT(session: Session) -> str: function fetch_data (line 73) | def fetch_data(target_datetime: datetime, kind: str, session: Session) -... function fetch_production (line 122) | def fetch_production( function fetch_consumption (line 173) | def fetch_consumption( function fetch_price (line 203) | def fetch_price( FILE: electricitymap/contrib/parsers/UA.py function fetch_production (line 42) | def fetch_production( FILE: electricitymap/contrib/parsers/US_CA.py function get_target_url (line 64) | def get_target_url(target_datetime: datetime | None, kind: str) -> str: function add_production_to_dict (line 73) | def add_production_to_dict(mode: str, value: float, production_dict: dic... function fetch_production (line 83) | def fetch_production( function fetch_consumption (line 146) | def fetch_consumption( function fetch_exchange (line 185) | def fetch_exchange( class OasisDatasetType (line 222) | class OasisDatasetType(Enum): function _generate_oasis_url (line 227) | def _generate_oasis_url(oasis_url_config, dataset_type: OasisDatasetType... function _get_oasis_data (line 246) | def _get_oasis_data(session: Session, target_url: str) -> pd.DataFrame: function fetch_consumption_forecast (line 258) | def fetch_consumption_forecast( function fetch_wind_solar_forecasts (line 325) | def fetch_wind_solar_forecasts( FILE: electricitymap/contrib/parsers/US_ERCOT.py class ReportTypeID (line 79) | class ReportTypeID(Enum): function get_data (line 90) | def get_data( function parse_storage_data_live (line 106) | def parse_storage_data_live(session: Session) -> pd.DataFrame: function fetch_live_consumption (line 127) | def fetch_live_consumption( function fetch_live_production (line 150) | def fetch_live_production( function fetch_live_exchange (line 303) | def fetch_live_exchange( function fetch_production (line 338) | def fetch_production( function fetch_consumption (line 354) | def fetch_consumption( function fetch_exchange (line 376) | def fetch_exchange( function _get_publish_date (line 397) | def _get_publish_date(doc): function _find_document_by_publish_date (line 401) | def _find_document_by_publish_date(documents, target_date): function _get_dataframe_from_url (line 431) | def _get_dataframe_from_url(url, session, target_date): function fetch_consumption_forecast (line 451) | def fetch_consumption_forecast( function fetch_wind_solar_forecasts (line 487) | def fetch_wind_solar_forecasts( function fetch_dayahead_locational_marginal_price (line 544) | def fetch_dayahead_locational_marginal_price( function fetch_realtime_locational_marginal_price (line 596) | def fetch_realtime_locational_marginal_price( function process_generation_dataframe (line 644) | def process_generation_dataframe(df): function transform_historical_production (line 683) | def transform_historical_production(df): function get_id_token (line 722) | def get_id_token(): FILE: electricitymap/contrib/parsers/US_MISO.py function get_json_data (line 57) | def get_json_data(logger: Logger, session: Session | None = None) -> dict: function data_processer (line 66) | def data_processer(json_data, logger: Logger) -> tuple[datetime, Product... function fetch_production (line 103) | def fetch_production( function fetch_consumption_forecast (line 127) | def fetch_consumption_forecast( function fetch_wind_solar_forecasts (line 177) | def fetch_wind_solar_forecasts( function fetch_grid_alerts (line 226) | def fetch_grid_alerts( function extract_text_with_links (line 286) | def extract_text_with_links(html_content): FILE: electricitymap/contrib/parsers/US_NEISO.py function get_json_data (line 51) | def get_json_data( function production_data_processer (line 80) | def production_data_processer( function fetch_production (line 149) | def fetch_production( function fetch_exchange (line 170) | def fetch_exchange( function fetch_consumption_forecast (line 241) | def fetch_consumption_forecast( function fetch_wind_solar_forecasts (line 282) | def fetch_wind_solar_forecasts( function fetch_grid_alerts (line 384) | def fetch_grid_alerts( FILE: electricitymap/contrib/parsers/US_NY.py function read_csv_data (line 67) | def read_csv_data(session: Session, url: str) -> pd.DataFrame: function read_zip_data (line 78) | def read_zip_data(session: Session, url: str, csv_file: str) -> pd.DataF... function timestamp_converter (line 90) | def timestamp_converter(timestamp_string: str) -> datetime: function data_parser (line 101) | def data_parser(df, mapping, logger) -> list[tuple[datetime, ProductionM... function fetch_production (line 139) | def fetch_production( function fetch_exchange (line 193) | def fetch_exchange( function fetch_consumption_forecast (line 288) | def fetch_consumption_forecast( function fetch_grid_alerts (line 341) | def fetch_grid_alerts( FILE: electricitymap/contrib/parsers/US_PJM.py function _get_api_subscription_key (line 78) | def _get_api_subscription_key(session: Session) -> str: function _fetch_api_data (line 88) | def _fetch_api_data( function fetch_consumption_forecast (line 120) | def fetch_consumption_forecast( function fetch_production (line 152) | def fetch_production( function fetch_wind_solar_forecasts (line 210) | def fetch_wind_solar_forecasts( function _get_interface_data (line 280) | def _get_interface_data( function fetch_exchange (line 329) | def fetch_exchange( function fetch_grid_alerts (line 376) | def fetch_grid_alerts( function extract_alert_type (line 442) | def extract_alert_type(alert: BeautifulSoup, i: int) -> GridAlertType: function extract_message (line 453) | def extract_message(alert: BeautifulSoup, i: int) -> str: function extract_start_and_end_time (line 464) | def extract_start_and_end_time( FILE: electricitymap/contrib/parsers/US_PREPA.py function extract_data (line 34) | def extract_data(html): function convert_timestamp (line 49) | def convert_timestamp( function fetch_production (line 68) | def fetch_production( FILE: electricitymap/contrib/parsers/US_SPP.py function get_data (line 97) | def get_data(url, session: Session | None = None): function data_processor (line 111) | def data_processor(df, logger: Logger) -> list[tuple[datetime, Productio... function fetch_production (line 172) | def fetch_production( function _NaN_safe_get (line 234) | def _NaN_safe_get(forecast: dict, key: str) -> float: function fetch_load_forecast (line 241) | def fetch_load_forecast( function fetch_wind_solar_forecasts (line 286) | def fetch_wind_solar_forecasts( function fetch_live_exchange (line 348) | def fetch_live_exchange( function fetch_historical_exchange (line 368) | def fetch_historical_exchange( function format_exchange_data (line 395) | def format_exchange_data( function fetch_exchange (line 424) | def fetch_exchange( function fetch_realtime_locational_marginal_price (line 449) | def fetch_realtime_locational_marginal_price( function fetch_dayahead_locational_marginal_price (line 489) | def fetch_dayahead_locational_marginal_price( function get_closest_5_minutes_datetime (line 522) | def get_closest_5_minutes_datetime(target_datetime: datetime) -> datetime: function get_realtime_url (line 529) | def get_realtime_url(target_datetime: datetime) -> str: function get_dayahead_url (line 548) | def get_dayahead_url(target_datetime: datetime) -> str: FILE: electricitymap/contrib/parsers/UY.py function get_adme_url (line 49) | def get_adme_url(target_datetime: datetime, session: Session) -> str: function fetch_data (line 82) | def fetch_data( function fix_solar_production (line 110) | def fix_solar_production(dt: datetime, value: float) -> int: function fetch_production (line 119) | def fetch_production( function fetch_consumption (line 166) | def fetch_consumption( function fetch_exchange (line 201) | def fetch_exchange( FILE: electricitymap/contrib/parsers/VN.py function fetch_live_data (line 36) | def fetch_live_data(data_type: str, session: Session): function fetch_historical_data (line 45) | def fetch_historical_data( function fetch_live_price (line 59) | def fetch_live_price( function fetch_live_consumption (line 80) | def fetch_live_consumption( function fetch_historical_price (line 100) | def fetch_historical_price( function fetch_historical_consumption (line 121) | def fetch_historical_consumption( function fetch_price (line 142) | def fetch_price( function fetch_consumption (line 172) | def fetch_consumption( FILE: electricitymap/contrib/parsers/YUKONENERGY.py function fetch_production (line 30) | def fetch_production( FILE: electricitymap/contrib/parsers/ajenti.py class SignalR (line 52) | class SignalR: method __init__ (line 53) | def __init__(self, url): method update_res (line 56) | def update_res(self, msg): method get_value (line 60) | def get_value(self, hub, method): function parse_payload (line 73) | def parse_payload(logger: Logger, payload) -> dict: function format_storage_techs (line 118) | def format_storage_techs(technologies_parsed): function sum_storage_techs (line 130) | def sum_storage_techs(technologies_parsed): function fetch_production (line 136) | def fetch_production( FILE: electricitymap/contrib/parsers/amper_landsnet.py function fetch_production (line 16) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/AM.py function fetch_production (line 65) | def fetch_production( function fetch_exchange (line 126) | def fetch_exchange( FILE: electricitymap/contrib/parsers/archived/AX.py function _get_masks (line 18) | def _get_masks(session=None): function _fetch_data (line 889) | def _fetch_data(session: Session | None = None) -> dict: function fetch_production (line 1005) | def fetch_production( function fetch_consumption (line 1037) | def fetch_consumption( function fetch_exchange (line 1056) | def fetch_exchange( FILE: electricitymap/contrib/parsers/archived/DK_old.py function fetch_production (line 22) | def fetch_production( function fetch_exchange (line 126) | def fetch_exchange( FILE: electricitymap/contrib/parsers/archived/GB_NIR.py function get_data (line 28) | def get_data(url, target_datetime, session=None): function add_default_tz (line 99) | def add_default_tz(timestamp): function create_production_df (line 108) | def create_production_df(text_data): function create_exchange_df (line 120) | def create_exchange_df(text_data): function production_processor (line 131) | def production_processor(df) -> list: function moyle_processor (line 151) | def moyle_processor(df) -> list: function IE_processor (line 168) | def IE_processor(df) -> list: function fetch_production (line 187) | def fetch_production( function fetch_exchange (line 221) | def fetch_exchange( FILE: electricitymap/contrib/parsers/archived/GE.py function fetch_production (line 37) | def fetch_production( function fetch_exchange (line 119) | def fetch_exchange( FILE: electricitymap/contrib/parsers/archived/HOPS.py function fetch_solar_production (line 16) | def fetch_solar_production( function fetch_production (line 56) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/IN_AP.py function fetch_production (line 14) | def fetch_production( function fetch_consumption (line 63) | def fetch_consumption( FILE: electricitymap/contrib/parsers/archived/IN_CT.py function fetch_consumption (line 14) | def fetch_consumption( function fetch_production (line 39) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/IN_GJ.py function split_and_sum (line 51) | def split_and_sum(expression) -> float: function fetch_data (line 61) | def fetch_data( function fetch_production (line 149) | def fetch_production( function fetch_consumption (line 186) | def fetch_consumption( FILE: electricitymap/contrib/parsers/archived/IN_UP.py function fetch_data (line 13) | def fetch_data(zone_key="IN-UP", session=None): function fetch_production (line 84) | def fetch_production(zone_key, session=None, target_datetime=None, logge... function fetch_consumption (line 102) | def fetch_consumption( FILE: electricitymap/contrib/parsers/archived/IQ.py function template_response (line 22) | def template_response(zone_key: str, datetime: datetime, source: str) ->... function fetch_data (line 37) | def fetch_data(r: Session): function fetch_production (line 48) | def fetch_production( function fetch_exchange (line 70) | def fetch_exchange( function fetch_consumption (line 104) | def fetch_consumption( FILE: electricitymap/contrib/parsers/archived/JP_ISEP.py function get_data (line 40) | def get_data(region, year, month, day): function process_data (line 57) | def process_data(df): function fetch_production (line 77) | def fetch_production( function fetch_consumption (line 122) | def fetch_consumption( FILE: electricitymap/contrib/parsers/archived/SE.py function fetch_production (line 39) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/US_BPA.py function get_data (line 23) | def get_data(url, session=None): function timestamp_converter (line 32) | def timestamp_converter(timestamp): function data_processor (line 41) | def data_processor(df, logger) -> list: function fetch_production (line 85) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/US_HI.py function get_historical_prod (line 17) | def get_historical_prod(r, request_dt): function validate_prod_timestamp (line 46) | def validate_prod_timestamp(logger: Logger, energy_dt, request_dt): function fetch_production (line 58) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/XK.py function fetch_production (line 21) | def fetch_production( FILE: electricitymap/contrib/parsers/archived/statnett.py function fetch_production (line 78) | def fetch_production( function fetch_exchange_by_bidding_zone (line 153) | def fetch_exchange_by_bidding_zone( function _fetch_exchanges_from_sorted_bidding_zones (line 196) | def _fetch_exchanges_from_sorted_bidding_zones( function _sum_of_exchanges (line 205) | def _sum_of_exchanges(exchanges): function fetch_exchange (line 215) | def fetch_exchange( FILE: electricitymap/contrib/parsers/eSett.py function fetch_production (line 31) | def fetch_production( FILE: electricitymap/contrib/parsers/email_grid_alerts.py function fetch_grid_alerts_emails (line 21) | def fetch_grid_alerts_emails( FILE: electricitymap/contrib/parsers/examples/example_parser.py function fetch_production (line 21) | def fetch_production( function fetch_price (line 137) | def fetch_price( function fetch_exchange (line 206) | def fetch_exchange( function fetch_consumption (line 278) | def fetch_consumption( function fetch_total_production (line 343) | def fetch_total_production( FILE: electricitymap/contrib/parsers/lib/IN.py function read_datetime_from_span_id (line 7) | def read_datetime_from_span_id(html, span_id, time_format): function read_text_from_span_id (line 12) | def read_text_from_span_id(html, span_id): function read_value_from_span_id (line 16) | def read_value_from_span_id(html, span_id): FILE: electricitymap/contrib/parsers/lib/config.py class BaseModeEnum (line 19) | class BaseModeEnum(str, Enum): method __str__ (line 22) | def __str__(self) -> str: method values (line 26) | def values(cls: type[ModeEnumType]) -> ValuesView[ModeEnumType]: method names (line 31) | def names(cls) -> KeysView[str]: method items (line 36) | def items(cls: type[ModeEnumType]) -> ItemsView[str, ModeEnumType]: class ProductionModes (line 41) | class ProductionModes(BaseModeEnum): class StorageModes (line 57) | class StorageModes(BaseModeEnum): function refetch_frequency (line 65) | def refetch_frequency(frequency: timedelta): function retry_policy (line 86) | def retry_policy(retry_policy: Retry): function use_proxy (line 112) | def use_proxy(country_code: str, monkeypatch_for_pydataxm: bool = False): FILE: electricitymap/contrib/parsers/lib/exceptions.py class ParserException (line 1) | class ParserException(Exception): method __init__ (line 14) | def __init__(self, parser: str, message: str, zone_key: str | None = N... method __str__ (line 19) | def __str__(self): FILE: electricitymap/contrib/parsers/lib/parsers.py function _parser_key_to_parser_folder (line 62) | def _parser_key_to_parser_folder(parser_key: ParserDataType): FILE: electricitymap/contrib/parsers/lib/quality.py class ValidationError (line 13) | class ValidationError(ValueError): function validate_datapoint_format (line 17) | def validate_datapoint_format(datapoint: dict[str, Any], kind: str, zone... function validate_reasonable_time (line 38) | def validate_reasonable_time(item, k): function validate_consumption (line 52) | def validate_consumption(obj: dict, zone_key: ZoneKey) -> None: function validate_exchange (line 66) | def validate_exchange(item, k) -> None: FILE: electricitymap/contrib/parsers/lib/session.py class LegacyHttpAdapter (line 7) | class LegacyHttpAdapter(adapters.HTTPAdapter): method init_poolmanager (line 8) | def init_poolmanager(self, connections, maxsize, block=False): function get_session_with_legacy_adapter (line 18) | def get_session_with_legacy_adapter(): FILE: electricitymap/contrib/parsers/lib/tests/test_config.py function test_ProductionModes_enum_values (line 4) | def test_ProductionModes_enum_values(snapshot): function test_ProductionModes_enum_names (line 8) | def test_ProductionModes_enum_names(snapshot): function test_ProductionModes_enum_items (line 12) | def test_ProductionModes_enum_items(snapshot): function test_StorageModes_enum_values (line 16) | def test_StorageModes_enum_values(snapshot): function test_StorageModes_enum_names (line 20) | def test_StorageModes_enum_names(snapshot): function test_StorageModes_enum_items (line 24) | def test_StorageModes_enum_items(snapshot): FILE: electricitymap/contrib/parsers/lib/utils.py function get_token (line 8) | def get_token(token): FILE: electricitymap/contrib/parsers/lib/validation.py function validate_exchange (line 7) | def validate_exchange( FILE: electricitymap/contrib/parsers/lib/web.py function get_response (line 7) | def get_response(zone_key: str, url: str, session: Session | None = None): function get_response_with_params (line 15) | def get_response_with_params( function get_response_text (line 25) | def get_response_text(zone_key: str, url, session: Session | None = None): function get_response_soup (line 32) | def get_response_soup(zone_key: str, url, session: Session | None = None): FILE: electricitymap/contrib/parsers/lib/zonekey.py function assert_zone_key (line 4) | def assert_zone_key(zone_key: str, expected, parser_name=None): FILE: electricitymap/contrib/parsers/occtonet.py function _fetch_exchange (line 53) | def _fetch_exchange( function fetch_exchange (line 88) | def fetch_exchange( function fetch_exchange_forecast (line 110) | def fetch_exchange_forecast( function get_cookies (line 137) | def get_cookies(session: Session | None = None) -> cookies.RequestsCooki... function get_form_data (line 144) | def get_form_data(session: Session, exchange_id: int, datetime: str) -> ... function _get_exchange (line 220) | def _get_exchange(session: Session, form_data: dict[str, str], columns: ... function get_exchange (line 250) | def get_exchange(session: Session, form_data): function get_exchange_fcst (line 254) | def get_exchange_fcst(session: Session, form_data): FILE: electricitymap/contrib/parsers/tests/conftest.py function adapter (line 14) | def adapter(): function session (line 26) | def session(adapter): FILE: electricitymap/contrib/parsers/tests/lib/test_IN.py function test_read_datetime_from_span_id (line 6) | def test_read_datetime_from_span_id(): function test_read_text_from_span_id (line 22) | def test_read_text_from_span_id(): function test_read_value_from_span_id (line 29) | def test_read_value_from_span_id(): FILE: electricitymap/contrib/parsers/tests/lib/test_exceptions.py function test_instance (line 4) | def test_instance(): function test_instance_with_zone_key (line 10) | def test_instance_with_zone_key(): FILE: electricitymap/contrib/parsers/tests/lib/test_web.py function test_get_response (line 4) | def test_get_response(): function test_get_response_text (line 8) | def test_get_response_text(): function test_get_response_soup (line 12) | def test_get_response_soup(): FILE: electricitymap/contrib/parsers/tests/lib/test_zonekey.py function test_assert_zone_key (line 7) | def test_assert_zone_key(): FILE: electricitymap/contrib/parsers/tests/test_AEMO.py function test_snapshot_fetch_consumption_forecast (line 19) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot,... FILE: electricitymap/contrib/parsers/tests/test_AU_TAS_FI.py function test_parsing_payload (line 9) | def test_parsing_payload(): FILE: electricitymap/contrib/parsers/tests/test_AU_TAS_KI.py function test_parsing_payload (line 9) | def test_parsing_payload(): FILE: electricitymap/contrib/parsers/tests/test_AU_WA_RI.py function test_parsing_payload (line 9) | def test_parsing_payload(): FILE: electricitymap/contrib/parsers/tests/test_AW.py function test_fetch_production (line 10) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_BE.py function entsoe_token_env (line 17) | def entsoe_token_env(): function test_fetch_production (line 21) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_BG.py function test_fetch_production (line 14) | def test_fetch_production(adapter, session, snapshot): function test_fetch_production_raises_parser_exception_on_historical_data (line 29) | def test_fetch_production_raises_parser_exception_on_historical_data(ada... FILE: electricitymap/contrib/parsers/tests/test_CAMMESA.py function mock_response (line 17) | def mock_response(adapter): function test_exchanges_AR_CL_SEN (line 47) | def test_exchanges_AR_CL_SEN(session, snapshot): function test_exchanges_AR_BAS_AR_COM (line 55) | def test_exchanges_AR_BAS_AR_COM(session, snapshot): function test_fetch_production (line 63) | def test_fetch_production(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CA_AB.py function test_fetch_wind_solar_forecasts (line 11) | def test_fetch_wind_solar_forecasts(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CA_CQ.py function test_production (line 9) | def test_production(adapter, session, snapshot): function test_consumption (line 23) | def test_consumption(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CA_ON.py function test_fetch_wind_solar_forecasts (line 15) | def test_fetch_wind_solar_forecasts(adapter, session, snapshot): function test_fetch_consumption_forecast (line 45) | def test_fetch_consumption_forecast(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CEB.py function mock_response (line 12) | def mock_response(adapter): function test_production (line 24) | def test_production(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CENACE.py function mock_response (line 13) | def mock_response(adapter): function test_fetch_consumption_MX_OC (line 21) | def test_fetch_consumption_MX_OC(session): function test_fetch_consumption_MX_BC (line 29) | def test_fetch_consumption_MX_BC(session): function test_fetch_consumption_BCS (line 37) | def test_fetch_consumption_BCS(session): FILE: electricitymap/contrib/parsers/tests/test_CH.py function test_get_solar_capacity (line 21) | def test_get_solar_capacity(dt, expected): FILE: electricitymap/contrib/parsers/tests/test_CL.py function mock_response (line 13) | def mock_response(adapter): function test_snapshot_historical_data (line 26) | def test_snapshot_historical_data(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CNDC.py function target_datetime (line 19) | def target_datetime(): function mock_response (line 24) | def mock_response(adapter, target_datetime): function test_fetch_generation_forecast (line 44) | def test_fetch_generation_forecast(session, snapshot, target_datetime): function test_fetch_production (line 52) | def test_fetch_production(session, snapshot, target_datetime): FILE: electricitymap/contrib/parsers/tests/test_CO.py function test_fetch_consumption_live (line 19) | def test_fetch_consumption_live(adapter, session, snapshot): function test_fetch_consumption_dt (line 29) | def test_fetch_consumption_dt(mock_readdb, snapshot): function test_fetch_production_live (line 39) | def test_fetch_production_live(mock_readdb, snapshot): function test_fetch_production_dt (line 49) | def test_fetch_production_dt(mock_readdb, snapshot): function test_fetch_price_live (line 60) | def test_fetch_price_live(mock_readdb, snapshot): function test_fetch_price_dt (line 69) | def test_fetch_price_dt(mock_readdb, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CR.py function test_fetch_production_live (line 14) | def test_fetch_production_live(adapter, session, snapshot): function test_fetch_production_historical (line 29) | def test_fetch_production_historical(adapter, session, snapshot): function test_fetch_exchange_live (line 49) | def test_fetch_exchange_live(adapter, session, snapshot): function test_fetch_exchange_raises_parser_exception_on_historical_data (line 64) | def test_fetch_exchange_raises_parser_exception_on_historical_data(adapt... FILE: electricitymap/contrib/parsers/tests/test_CY.py function target_datetime (line 15) | def target_datetime(): function mock_response (line 20) | def mock_response(adapter): function test_snapshot_historical_source (line 35) | def test_snapshot_historical_source(session, target_datetime, snapshot): function test_snapshot_realtime_source (line 43) | def test_snapshot_realtime_source(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_CZ.py function mock_good_response (line 19) | def mock_good_response(adapter): function mock_no_data_response (line 33) | def mock_no_data_response(adapter): function test_fetch_exchange (line 57) | def test_fetch_exchange(session, snapshot, mock_good_response, zone_key2): function test_fetch_exchange_forecast_pl (line 68) | def test_fetch_exchange_forecast_pl(session, snapshot, mock_good_response): function test_fetch_exchange_raises_exception_on_no_data (line 79) | def test_fetch_exchange_raises_exception_on_no_data(session, mock_no_dat... FILE: electricitymap/contrib/parsers/tests/test_DK.py function mock_response (line 12) | def mock_response(adapter): function test_fetch_exchange (line 34) | def test_fetch_exchange(session, snapshot): function test_fetch_forecast (line 45) | def test_fetch_forecast(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_DO.py function production_df (line 13) | def production_df(): function test_correct_solar_production_all_nan (line 97) | def test_correct_solar_production_all_nan(production_df): function test_correct_solar_production_nan_then_prod (line 102) | def test_correct_solar_production_nan_then_prod(production_df): function test_correct_solar_production_prod_then_nan (line 126) | def test_correct_solar_production_prod_then_nan(production_df): function test_correct_solar_production_prod_then_nan_then_prod (line 139) | def test_correct_solar_production_prod_then_nan_then_prod(production_df): function test_fetch_production (line 175) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_EIA.py function eia_key_env (line 15) | def eia_key_env(): function test_parse_hourly_interval (line 19) | def test_parse_hourly_interval(): function test_fetch_production_mix (line 38) | def test_fetch_production_mix(adapter, session, snapshot): function test_US_NW_AVRN_rerouting (line 53) | def test_US_NW_AVRN_rerouting(adapter, session, snapshot): function test_US_CAR_SC_nuclear_split (line 169) | def test_US_CAR_SC_nuclear_split(adapter, session, snapshot): function test_check_transfer_mixes (line 294) | def test_check_transfer_mixes(): function test_hydro_transfer_mix (line 309) | def test_hydro_transfer_mix(adapter, session, snapshot): function test_exchange_transfer (line 401) | def test_exchange_transfer(adapter, session): function test_fetch_production_mix_discards_null (line 449) | def test_fetch_production_mix_discards_null(adapter, session, snapshot): function test_fetch_exchange (line 469) | def test_fetch_exchange(adapter, session): function test_fetch_consumption (line 510) | def test_fetch_consumption(adapter, session): function test_fetch_forecasted_consumption (line 540) | def test_fetch_forecasted_consumption(adapter, session): function test_fetch_returns_storage (line 571) | def test_fetch_returns_storage(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ENERCAL.py function test_production_with_snapshot (line 9) | def test_production_with_snapshot(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ENTE.py function mock_response (line 17) | def mock_response(adapter): function test_fetch_exchange (line 30) | def test_fetch_exchange(session, snapshot): function test_fetch_exchange_raises_exception_on_exchange_not_implemented (line 38) | def test_fetch_exchange_raises_exception_on_exchange_not_implemented(ses... function test_fetch_production (line 48) | def test_fetch_production(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ENTSOE.py function entsoe_token_env (line 27) | def entsoe_token_env(): function test_fetch_consumption (line 31) | def test_fetch_consumption(adapter, session, snapshot): function test_fetch_consumption_forecast (line 42) | def test_fetch_consumption_forecast(adapter, session, snapshot): function test_fetch_consumption_aggregated_zone (line 53) | def test_fetch_consumption_aggregated_zone(monkeypatch): function test_fetch_generation_forecast (line 92) | def test_fetch_generation_forecast(adapter, session, snapshot): function test_fetch_generation_forecast_aggregated_zone (line 103) | def test_fetch_generation_forecast_aggregated_zone(monkeypatch): function test_fetch_prices_day_ahead (line 144) | def test_fetch_prices_day_ahead(adapter, session, snapshot): function test_fetch_prices_intraday (line 155) | def test_fetch_prices_intraday(adapter, session, snapshot): function test_fetch_prices_integrated_zone (line 166) | def test_fetch_prices_integrated_zone(adapter, session, snapshot): function test_fetch_with_negative_values (line 176) | def test_fetch_with_negative_values(adapter, session, snapshot): function test_production_with_snapshot (line 190) | def test_production_with_snapshot(adapter, session, snapshot, zone): function test_fetch_exchange (line 202) | def test_fetch_exchange(adapter, session, snapshot): function test_fetch_exchange_with_aggregated_exchanges (line 221) | def test_fetch_exchange_with_aggregated_exchanges(adapter, session, snap... function test_fetch_exchange_forecast (line 255) | def test_fetch_exchange_forecast(adapter, session, snapshot): function test_fetch_exchange_forecast_15_min (line 276) | def test_fetch_exchange_forecast_15_min(adapter, session, snapshot): function test_fetch_exchange_forecast_with_longer_day_ahead_than_total (line 297) | def test_fetch_exchange_forecast_with_longer_day_ahead_than_total( function test_fetch_exchange_forecast_with_aggregated_exchanges (line 320) | def test_fetch_exchange_forecast_with_aggregated_exchanges(adapter, sess... function test_wind_and_solar_forecasts (line 354) | def test_wind_and_solar_forecasts(adapter, session, snapshot): function test_wind_and_solar_forecasts_by_type (line 396) | def test_wind_and_solar_forecasts_by_type( function test_fetch_uses_normal_url (line 406) | def test_fetch_uses_normal_url(adapter, session): function test_refetch_frequency (line 419) | def test_refetch_frequency(): function _make_soup (line 428) | def _make_soup(xml: str): function test_a01_timeseries_parsing_production_and_consumption (line 432) | def test_a01_timeseries_parsing_production_and_consumption(): function test_a03_curve_compression_expands_segments_correctly (line 482) | def test_a03_curve_compression_expands_segments_correctly(): function test_a03_curve_compression_expands_1_datapoint_correctly (line 523) | def test_a03_curve_compression_expands_1_datapoint_correctly(): function test_a03_curve_decompression (line 567) | def test_a03_curve_decompression(fixture, snapshot): function test_parse_exchange_capacity_forecast_week_ahead_export_direction (line 581) | def test_parse_exchange_capacity_forecast_week_ahead_export_direction(): function test_parse_exchange_capacity_forecast_week_ahead_import_direction (line 602) | def test_parse_exchange_capacity_forecast_week_ahead_import_direction(): function test_parse_exchange_capacity_forecast_day_ahead_export_direction (line 619) | def test_parse_exchange_capacity_forecast_day_ahead_export_direction(): function test_parse_exchange_capacity_forecast_month_ahead_import_direction (line 640) | def test_parse_exchange_capacity_forecast_month_ahead_import_direction(): function test_parse_exchange_capacity_forecast_empty_xml (line 660) | def test_parse_exchange_capacity_forecast_empty_xml(): function test_parse_exchange_capacity_forecast_multiple_timeseries (line 669) | def test_parse_exchange_capacity_forecast_multiple_timeseries(): function _make_capacity_list (line 705) | def _make_capacity_list( function test_merge_exchange_capacity_forecasts_both_directions (line 724) | def test_merge_exchange_capacity_forecasts_both_directions(): function test_merge_exchange_capacity_forecasts_only_forward (line 746) | def test_merge_exchange_capacity_forecasts_only_forward(): function test_merge_exchange_capacity_forecasts_only_reverse (line 763) | def test_merge_exchange_capacity_forecasts_only_reverse(): function test_merge_exchange_capacity_forecasts_non_overlapping_datetimes (line 780) | def test_merge_exchange_capacity_forecasts_non_overlapping_datetimes(): function test_merge_exchange_capacity_forecasts_prefers_forward_zone_key (line 802) | def test_merge_exchange_capacity_forecasts_prefers_forward_zone_key(): function test_fetch_exchange_capacity_forecasts_day_ahead (line 816) | def test_fetch_exchange_capacity_forecasts_day_ahead(adapter, session, s... function test_fetch_exchange_capacity_forecasts_week_ahead (line 838) | def test_fetch_exchange_capacity_forecasts_week_ahead(adapter, session, ... function test_fetch_exchange_capacity_forecasts_month_ahead (line 860) | def test_fetch_exchange_capacity_forecasts_month_ahead(adapter, session,... FILE: electricitymap/contrib/parsers/tests/test_ERCOT.py function test_fetch_production (line 13) | def test_fetch_production(): function test_fetch_consumption (line 46) | def test_fetch_consumption(): function test_fetch_production_with_target_datetime_raises_not_implemented (line 62) | def test_fetch_production_with_target_datetime_raises_not_implemented(): FILE: electricitymap/contrib/parsers/tests/test_ERP_PGCB.py function _load_mock_response (line 18) | def _load_mock_response(adapter, target_datetime): function test_fetch_consumption (line 33) | def test_fetch_consumption(adapter, session, snapshot, target_datetime): function test_exchanges (line 41) | def test_exchanges(adapter, session, snapshot, target_datetime): function test_fetch_production (line 49) | def test_fetch_production(adapter, session, snapshot, target_datetime): FILE: electricitymap/contrib/parsers/tests/test_ES.py function mock_response (line 11) | def mock_response(adapter): function test_es_consumption (line 43) | def test_es_consumption(adapter, session, snapshot): function test_es_production (line 50) | def test_es_production(adapter, session, snapshot): function test_es_pt_exchange (line 57) | def test_es_pt_exchange(adapter, session, snapshot): function test_es_ib_ma_consumption (line 67) | def test_es_ib_ma_consumption(adapter, session, snapshot): function test_es_ib_ma_production (line 74) | def test_es_ib_ma_production(adapter, session, snapshot): function test_es_ib_ma_exchange (line 81) | def test_es_ib_ma_exchange(adapter, session, snapshot): function test_es_cn_te_consumption (line 91) | def test_es_cn_te_consumption(adapter, session, snapshot): function test_es_cn_te_production (line 98) | def test_es_cn_te_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ESIOS.py function test_fetch_exchange (line 11) | def test_fetch_exchange(adapter, session): function test_exchange_with_snapshot (line 31) | def test_exchange_with_snapshot(session, adapter, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ESKOM.py function test_production (line 9) | def test_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ESTADISTICO_UT.py function test_fetch_production_live (line 13) | def test_fetch_production_live(adapter, session, snapshot): function test_fetch_production_historical (line 35) | def test_fetch_production_historical(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_FO.py function test_fetch_production_live (line 16) | def test_fetch_production_live(adapter, session, snapshot, zone): function test_fetch_production_historical (line 41) | def test_fetch_production_historical(adapter, session, snapshot, zone, u... FILE: electricitymap/contrib/parsers/tests/test_FR.py function test_production (line 9) | def test_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_FR_O.py function test_fetch_exchange (line 11) | def test_fetch_exchange(adapter, session): function test_fetch_price (line 61) | def test_fetch_price(adapter, session): function test_fetch_production (line 98) | def test_fetch_production(adapter, session): FILE: electricitymap/contrib/parsers/tests/test_GB.py function test_fetch_price_live (line 27) | def test_fetch_price_live(adapter, session, snapshot, zone_key): function test_fetch_price_historical (line 41) | def test_fetch_price_historical(adapter, session, snapshot): function test_fetch_production (line 55) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_GT.py function test_fetch_production_live (line 12) | def test_fetch_production_live(adapter, session, snapshot): function test_fetch_production_historical (line 31) | def test_fetch_production_historical(adapter, session, snapshot): function test_fetch_consumption_live (line 55) | def test_fetch_consumption_live(adapter, session, snapshot): function test_fetch_consumption_historical (line 74) | def test_fetch_consumption_historical(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_HN.py function test_fetch_production (line 13) | def test_fetch_production(adapter, session, snapshot): function test_fetch_exchange (line 58) | def test_fetch_exchange(adapter, session, snapshot, zone_key1, zone_key2): FILE: electricitymap/contrib/parsers/tests/test_IEMOP.py function test_production (line 14) | def test_production(adapter, session, snapshot, zone_key: ZoneKey): FILE: electricitymap/contrib/parsers/tests/test_IN.py function test_parse_daily_total_production_grid_india_report (line 21) | def test_parse_daily_total_production_grid_india_report(): function test_parse_total_production_15min_grid_india_report (line 26) | def test_parse_total_production_15min_grid_india_report(): function test_compute_zone_key_share_per_mode_out_of_total (line 31) | def test_compute_zone_key_share_per_mode_out_of_total(): function test_scale_15min_production (line 49) | def test_scale_15min_production(snapshot): function test_parse_15m_production_grid_india_report (line 56) | def test_parse_15m_production_grid_india_report(snapshot): function test_parse_daily_production_grid_india_report (line 63) | def test_parse_daily_production_grid_india_report(snapshot): FILE: electricitymap/contrib/parsers/tests/test_IN_AP.py function mock_response (line 10) | def mock_response(adapter): function test_fetch_production (line 20) | def test_fetch_production(session): function test_fetch_consumption (line 30) | def test_fetch_consumption(session): FILE: electricitymap/contrib/parsers/tests/test_IN_EA.py function test_exchanges (line 22) | def test_exchanges(adapter, session, neighbour_zone_key: ZoneKey): FILE: electricitymap/contrib/parsers/tests/test_IN_HP.py function mock_response (line 11) | def mock_response(adapter): function test_fetch_production (line 21) | def test_fetch_production(session): FILE: electricitymap/contrib/parsers/tests/test_IN_KA.py function test_fetch_consumption (line 8) | def test_fetch_consumption(adapter, session): function test_fetch_production (line 26) | def test_fetch_production(adapter, session): FILE: electricitymap/contrib/parsers/tests/test_JAO.py function _register_shadow_auction_atc (line 43) | def _register_shadow_auction_atc(adapter) -> None: function test_fetch_shadow_auction_atc_day_ahead_de_fr (line 48) | def test_fetch_shadow_auction_atc_day_ahead_de_fr(adapter, session, snap... function test_fetch_shadow_auction_atc_day_ahead_pair_not_in_core (line 61) | def test_fetch_shadow_auction_atc_day_ahead_pair_not_in_core(adapter, se... function test_fetch_shadow_auction_atc_day_ahead_em_to_jao_zone_remap (line 75) | def test_fetch_shadow_auction_atc_day_ahead_em_to_jao_zone_remap(adapter... function test_fetch_shadow_auction_atc_day_ahead_one_sided (line 105) | def test_fetch_shadow_auction_atc_day_ahead_one_sided(adapter, session): function test_fetch_core_external_atc_day_ahead_de_dk_dk1 (line 134) | def test_fetch_core_external_atc_day_ahead_de_dk_dk1(adapter, session, s... function test_fetch_core_external_atc_day_ahead_border_not_in_dataset (line 150) | def test_fetch_core_external_atc_day_ahead_border_not_in_dataset(adapter... function test_fetch_core_max_bex_day_ahead_de_fr (line 166) | def test_fetch_core_max_bex_day_ahead_de_fr(adapter, session, snapshot): function test_fetch_nordic_max_bex_day_ahead_no1_se3 (line 181) | def test_fetch_nordic_max_bex_day_ahead_no1_se3(adapter, session, snapsh... function test_fetch_core_scheduled_exchanges_day_ahead_de_fr (line 197) | def test_fetch_core_scheduled_exchanges_day_ahead_de_fr(adapter, session... function test_fetch_nordic_max_bflow_day_ahead_no1_se3 (line 212) | def test_fetch_nordic_max_bflow_day_ahead_no1_se3(adapter, session, snap... FILE: electricitymap/contrib/parsers/tests/test_JP.py function test_snapshot_fetch_generation_forecast (line 33) | def test_snapshot_fetch_generation_forecast(adapter, session, snapshot, ... function test_snapshot_fetch_consumption_forecast (line 158) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot,... FILE: electricitymap/contrib/parsers/tests/test_JP_KY.py function mock_csv_response_at_night (line 14) | def mock_csv_response_at_night(): function mock_csv_response_at_day (line 25) | def mock_csv_response_at_day(): function mock_nuclear_responses (line 36) | def mock_nuclear_responses(): function mock_exchange_data_night (line 50) | def mock_exchange_data_night(): function mock_exchange_data_day (line 89) | def mock_exchange_data_day(): function test_fetch_production_success_without_solar (line 127) | def test_fetch_production_success_without_solar( function test_fetch_production_success_with_solar (line 159) | def test_fetch_production_success_with_solar( function test_fetch_production_with_past_date (line 191) | def test_fetch_production_with_past_date(): function test_fetch_production_with_distant_exchange_data (line 197) | def test_fetch_production_with_distant_exchange_data( function test_snapshot_fetch_production (line 228) | def test_snapshot_fetch_production( FILE: electricitymap/contrib/parsers/tests/test_JP_SK.py function test_find_nuclear_image_url (line 14) | def test_find_nuclear_image_url(adapter, session): function test_fetch_nuclear_image (line 29) | def test_fetch_nuclear_image(adapter, session): FILE: electricitymap/contrib/parsers/tests/test_KPX.py function mock_response_as_realtime (line 16) | def mock_response_as_realtime(adapter): function mock_response_as_historical (line 24) | def mock_response_as_historical(adapter): function test_fetch_consumption_realtime (line 32) | def test_fetch_consumption_realtime(session, snapshot, mock_response_as_... function test_fetch_production_realtime (line 36) | def test_fetch_production_realtime(session, snapshot, mock_response_as_r... function test_production_historical (line 40) | def test_production_historical(session, snapshot, mock_response_as_histo... FILE: electricitymap/contrib/parsers/tests/test_MD.py function test_fetch_consumption_live (line 27) | def test_fetch_consumption_live(adapter, session, snapshot): function test_fetch_consumption_historical (line 41) | def test_fetch_consumption_historical(adapter, session, snapshot): function test_fetch_exchange_live (line 59) | def test_fetch_exchange_live(adapter, session, snapshot, neighbor): function test_fetch_exchange_historical (line 76) | def test_fetch_exchange_historical(adapter, session, snapshot, neighbor): function test_fetch_exchange_forecast_live (line 97) | def test_fetch_exchange_forecast_live(adapter, session, snapshot, neighb... function test_fetch_exchange_forecast_historical (line 114) | def test_fetch_exchange_forecast_historical(adapter, session, snapshot, ... function test_fetch_price_live (line 136) | def test_fetch_price_live(snapshot): function test_fetch_price_historical (line 156) | def test_fetch_price_historical(snapshot, historical_datetime): function test_fetch_production_live (line 163) | def test_fetch_production_live(adapter, session, snapshot): function test_fetch_production_historical (line 177) | def test_fetch_production_historical(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_NORDPOOL.py function emaps_env (line 16) | def emaps_env(): function test_price_parser_se (line 21) | def test_price_parser_se(adapter, session, snapshot): function test_exchange_parser_fi_se1 (line 49) | def test_exchange_parser_fi_se1(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_NTESMO.py function fixture_session_mock (line 21) | def fixture_session_mock(adapter, session) -> tuple[requests.Session, Ad... function test_fetch_production (line 61) | def test_fetch_production(fixture_session_mock): function test_fetch_price (line 88) | def test_fetch_price(fixture_session_mock): function test_fetch_consumption (line 119) | def test_fetch_consumption(fixture_session_mock): function test_snapshot_fetch_consumption_forecast (line 151) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_NZ.py function test_snapshot_production_data (line 14) | def test_snapshot_production_data(adapter, session, snapshot): function test_snapshot_price_data (line 43) | def test_snapshot_price_data(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_ONS.py function mock_response (line 17) | def mock_response(): function test_snapshot_fetch_production (line 28) | def test_snapshot_fetch_production(zone_key, data_file, adapter, session... function test_snapshot_fetch_exchange (line 62) | def test_snapshot_fetch_exchange( FILE: electricitymap/contrib/parsers/tests/test_OPENNEM.py function openelectricity_token_env (line 20) | def openelectricity_token_env(): function test_production (line 27) | def test_production(adapter, session, snapshot, zone): function test_price (line 40) | def test_price(adapter, session, snapshot, zone): function test_au_nsw_au_qld_exchange (line 52) | def test_au_nsw_au_qld_exchange(adapter, session, snapshot): function test_au_nsw_au_vic_exchange (line 66) | def test_au_nsw_au_vic_exchange(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_PA.py function mock_response (line 11) | def mock_response(adapter): function test_fetch_production (line 23) | def test_fetch_production(session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_PE.py function test_fetch_production_with_target_datetime (line 14) | def test_fetch_production_with_target_datetime(adapter, session, snapshot): function test_fetch_production_data_structure (line 62) | def test_fetch_production_data_structure(adapter, session): FILE: electricitymap/contrib/parsers/tests/test_PF.py function mock_response (line 13) | def mock_response(adapter): function test_fetch_production_live (line 24) | def test_fetch_production_live(session, snapshot): function test_fetch_production_raises_parser_exception_on_historical_data (line 29) | def test_fetch_production_raises_parser_exception_on_historical_data(ada... FILE: electricitymap/contrib/parsers/tests/test_RU.py function test_snapshot_fetch_production (line 20) | def test_snapshot_fetch_production(adapter, session, snapshot, zone_key): function test_snapshot_fetch_exchange (line 75) | def test_snapshot_fetch_exchange( function test_snapshot_fetch_exchange_live (line 102) | def test_snapshot_fetch_exchange_live(adapter, session, snapshot): function test_snapshot_fetch_production_live (line 123) | def test_snapshot_fetch_production_live(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_SG.py function mock_response (line 13) | def mock_response(adapter): function test_works_when_nonzero (line 24) | def test_works_when_nonzero(adapter, session): function test_works_when_zero (line 36) | def test_works_when_zero(session): function test_ignore_data_older_than_one_hour (line 41) | def test_ignore_data_older_than_one_hour(session): function test_allow_remote_clock_to_be_slightly_ahead (line 47) | def test_allow_remote_clock_to_be_slightly_ahead(session): FILE: electricitymap/contrib/parsers/tests/test_SMARTGRIDDASHBOARD.py function test_fetch_consumption (line 18) | def test_fetch_consumption(adapter, session, snapshot): function test_fetch_consumption_forecast (line 36) | def test_fetch_consumption_forecast(adapter, session, snapshot): function test_fetch_exchange (line 54) | def test_fetch_exchange(adapter, session, snapshot): function test_fetch_generation (line 73) | def test_fetch_generation(adapter, session, snapshot): function test_fetch_wind_solar_forecasts (line 92) | def test_fetch_wind_solar_forecasts(adapter, session, snapshot): function test_fetch_production (line 122) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_TAIPOWER.py function test_production (line 7) | def test_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_TR.py function tr_credentials_env (line 17) | def tr_credentials_env(): function test_fetch_production (line 29) | def test_fetch_production(adapter, session, snapshot, target_datetime): FILE: electricitymap/contrib/parsers/tests/test_US_CA.py function test_snapshot_fetch_wind_solar_forecasts (line 15) | def test_snapshot_fetch_wind_solar_forecasts(snapshot): function test_snapshot_fetch_consumption_forecast (line 39) | def test_snapshot_fetch_consumption_forecast(snapshot): FILE: electricitymap/contrib/parsers/tests/test_US_ERCOT.py function test_snapshot_fetch_consumption_forecast (line 19) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot): function test_snapshot_fetch_wind_solar_forecasts (line 50) | def test_snapshot_fetch_wind_solar_forecasts(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_US_MISO.py function test_fetch_production (line 23) | def test_fetch_production(): function test_snapshot_fetch_wind_solar_forecasts (line 47) | def test_snapshot_fetch_wind_solar_forecasts(adapter, session, snapshot): function test_snapshot_fetch_consumption_forecast (line 71) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_US_NEISO.py function test_fetch_consumption_forecast (line 18) | def test_fetch_consumption_forecast(adapter, session, snapshot): function test_fetch_wind_solar_forecasts (line 34) | def test_fetch_wind_solar_forecasts(adapter, session, snapshot): function test_fetch_exchange (line 79) | def test_fetch_exchange(adapter, session, snapshot, zone_key1, zone_key2): FILE: electricitymap/contrib/parsers/tests/test_US_NY.py function test_snapshot_fetch_consumption_forecast (line 14) | def test_snapshot_fetch_consumption_forecast(adapter, session, snapshot): function test_snapshot_fetch_production_more_than_9_days_in_past (line 32) | def test_snapshot_fetch_production_more_than_9_days_in_past(adapter, ses... FILE: electricitymap/contrib/parsers/tests/test_US_PJM.py function test_production (line 17) | def test_production(adapter, session, snapshot): function test_fetch_consumption_forecast (line 40) | def test_fetch_consumption_forecast(adapter, session, snapshot): function test_fetch_wind_solar_forecasts (line 66) | def test_fetch_wind_solar_forecasts(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_US_SPP.py function test_fetch_production (line 15) | def test_fetch_production(): function test_SPP_logging (line 37) | def test_SPP_logging(): function test_fetch_realtime_locational_marginal_price (line 57) | def test_fetch_realtime_locational_marginal_price(adapter, session, snap... function test_fetch_dayahead_locational_marginal_price (line 87) | def test_fetch_dayahead_locational_marginal_price(adapter, session, snap... FILE: electricitymap/contrib/parsers/tests/test_UY.py function register_mock_uris (line 17) | def register_mock_uris(adapter): function test_fetch_production (line 32) | def test_fetch_production(session, snapshot): function test_fetch_consumption (line 39) | def test_fetch_consumption(session, snapshot): function test_fetch_exchange (line 47) | def test_fetch_exchange(session, snapshot, zone_key): FILE: electricitymap/contrib/parsers/tests/test_amper_landsnet.py function test_fetch_production (line 10) | def test_fetch_production(adapter, session, snapshot): FILE: electricitymap/contrib/parsers/tests/test_config.py function emission_factor_result (line 10) | def emission_factor_result(zone_key): function test_snapshot_emission_factor (line 24) | def test_snapshot_emission_factor(snapshot, zone_key, emission_factor_re... FILE: electricitymap/contrib/parsers/tests/test_quality.py function test_validate_consumption_positive (line 19) | def test_validate_consumption_positive(): function test_validate_consumption_negative (line 23) | def test_validate_consumption_negative(): function test_validate_consumption_none (line 28) | def test_validate_consumption_none(): function test_validate_exchange_key_mismatch (line 32) | def test_validate_exchange_key_mismatch(): function test_validate_exchange_no_datetime (line 37) | def test_validate_exchange_no_datetime(): function test_validate_exchange_bad_datetime (line 42) | def test_validate_exchange_bad_datetime(): function test_validate_exchange_future_not_allowed (line 47) | def test_validate_exchange_future_not_allowed(): FILE: electricitymap/contrib/parsers/tests/test_utils.py function test_TOKEN_WIKI_URL (line 9) | def test_TOKEN_WIKI_URL(): function test_get_token (line 13) | def test_get_token(): FILE: geo/generate-zone-geo.ts constant GEO_PATH (line 10) | const GEO_PATH = join(import.meta.dir, 'world.geojson'); constant ZONES_DIR (line 11) | const ZONES_DIR = join(import.meta.dir, '..', 'config', 'zones'); constant BUFFER_KM (line 12) | const BUFFER_KM = -40; function getSubZoneNames (line 29) | function getSubZoneNames(content: string): string[] { type ZoneGeo (line 35) | interface ZoneGeo { function computeZoneGeo (line 41) | function computeZoneGeo(features: Feature[]): Zo... FILE: libs/types/src/electricitymap/contrib/types/__init__.py class ParserDataType (line 28) | class ParserDataType(Enum): method __str__ (line 55) | def __str__(self) -> str: FILE: scripts/ENTSOE_capacity_update.py function update_zone (line 38) | def update_zone(zone_key: ZoneKey, data: dict) -> None: function aggregate_data (line 56) | def aggregate_data(data: dict) -> dict: function parse_args (line 69) | def parse_args(): function parse_from_entsoe_api (line 81) | def parse_from_entsoe_api(zone_key: ZoneKey, token: str) -> dict: function parse_from_csv (line 127) | def parse_from_csv(filepath: str) -> dict: function main (line 139) | def main(): FILE: scripts/create_aggregated_zone_config.py function create_aggregated_config (line 22) | def create_aggregated_config(zoneKey: str, timezone: str): function main (line 76) | def main(): FILE: scripts/remove_zone.py function remove_config (line 27) | def remove_config(zone_key: ZoneKey): function remove_from_parent_config (line 35) | def remove_from_parent_config(zone_key: ZoneKey): function remove_exchanges (line 49) | def remove_exchanges(zone_key: ZoneKey): function move_parser_to_archived (line 67) | def move_parser_to_archived(zone_key: ZoneKey): function find_files_mentioning_zone (line 76) | def find_files_mentioning_zone(text): function main (line 119) | def main(): FILE: scripts/tooling.py function _run (line 13) | def _run(cmd: str): function format (line 22) | def format(): # noqa: A001 function lint (line 27) | def lint(): function test (line 31) | def test(): function check (line 35) | def check(): FILE: scripts/update_capacity_configuration.py function update_zone (line 35) | def update_zone( function update_source (line 55) | def update_source(source: str, target_datetime: datetime, session: Sessi... function sort_config_keys (line 72) | def sort_config_keys(config: dict[str, Any]) -> dict[str, Any]: function update_zone_capacity_config (line 77) | def update_zone_capacity_config(zone_key: ZoneKey, data: dict) -> None: function generate_zone_capacity_config (line 101) | def generate_zone_capacity_config( function update_capacity_list_if_value_already_exists (line 131) | def update_capacity_list_if_value_already_exists( function update_capacity_list_if_datetime_already_exists (line 158) | def update_capacity_list_if_datetime_already_exists( function generate_zone_capacity_list (line 210) | def generate_zone_capacity_list( function check_capacity_config_type (line 280) | def check_capacity_config_type(capacity_config: list, config_type: type)... function generate_aggregated_capacity_config (line 285) | def generate_aggregated_capacity_config( function generate_aggregated_capacity_config_dict (line 317) | def generate_aggregated_capacity_config_dict( function compute_aggregated_value (line 341) | def compute_aggregated_value(capacity_config: list[dict[str, Any]]) -> f... function generate_aggregated_capacity_config_list (line 355) | def generate_aggregated_capacity_config_list( function update_aggregated_capacity_config (line 381) | def update_aggregated_capacity_config(parent_zone: ZoneKey) -> None: FILE: scripts/update_capacity_ember_all_years.py function update_zone_with_all_years (line 38) | def update_zone_with_all_years(zone_key: ZoneKey, capacity_data: dict) -... function main (line 97) | def main(): FILE: scripts/utils.py function run_shell_command (line 17) | def run_shell_command(cmd: str, cwd: PathLike | str = "") -> str: class JsonFilePatcher (line 23) | class JsonFilePatcher: method __init__ (line 34) | def __init__(self, file_path: PathLike | str, indent: int | None = 2): method __enter__ (line 38) | def __enter__(self): method __exit__ (line 44) | def __exit__(self, exc_type, exc_value, tb): class YamlFilePatcher (line 61) | class YamlFilePatcher: method __init__ (line 72) | def __init__(self, file_path: PathLike | str): method __enter__ (line 75) | def __enter__(self): method __exit__ (line 81) | def __exit__(self, exc_type, exc_value, tb): function write_zone_config (line 90) | def write_zone_config(zone_key: ZoneKey, zone_config: dict[str, Any]) ->... FILE: scripts/validate_config_filenames.py function main (line 14) | def main(): FILE: scripts/zone_names.py function add_country_names (line 7) | def add_country_names(): function check_additional_attributes (line 38) | def check_additional_attributes(): FILE: test_parser.py function test_parser (line 30) | def test_parser(zone: ZoneKey, data_type: str, target_datetime: str | No... FILE: tests/config/test_config.py class ConfigTestcase (line 19) | class ConfigTestcase(unittest.TestCase): method test_zones_config (line 20) | def test_zones_config(self): method test_zone_parent (line 27) | def test_zone_parent(self): method test_zone_bounding_box (line 32) | def test_zone_bounding_box(self): method test_zone_neighbours (line 38) | def test_zone_neighbours(self): method test_emission_factors (line 46) | def test_emission_factors(self): function test_data_centers_config (line 56) | def test_data_centers_config(snapshot): FILE: tests/config/test_config_model.py class ConfigModelTestcase (line 15) | class ConfigModelTestcase(unittest.TestCase): method test_pydantic_model (line 16) | def test_pydantic_model(self): method test_zone_sources (line 35) | def test_zone_sources(self): method test_parser_model_contains_all_parser_data_types (line 63) | def test_parser_model_contains_all_parser_data_types(self): method test_exchange_parsers_model_contains_all_parser_data_types (line 72) | def test_exchange_parsers_model_contains_all_parser_data_types(self): FILE: tests/config/test_config_zones.py class TestConfigZones (line 16) | class TestConfigZones(unittest.TestCase): method test_bounding_boxes_basic (line 17) | def test_bounding_boxes_basic(self): method test_zone_parents_basic (line 31) | def test_zone_parents_basic(self): method test_generate_all_neighbours_basic (line 42) | def test_generate_all_neighbours_basic(self): method test_generate_zone_neighbours_two_countries (line 53) | def test_generate_zone_neighbours_two_countries(self): method test_generate_zone_neighbours_one_country_one_subzone (line 66) | def test_generate_zone_neighbours_one_country_one_subzone(self): method test_generate_zone_neighbours_two_subzones (line 80) | def test_generate_zone_neighbours_two_subzones(self): method test_generate_zone_neighbours_two_subzones_from_same (line 117) | def test_generate_zone_neighbours_two_subzones_from_same(self): method test_generate_zone_neighbours_GB (line 136) | def test_generate_zone_neighbours_GB(self): method test_generate_zone_neighbours_no_exchange_parser (line 153) | def test_generate_zone_neighbours_no_exchange_parser(self): FILE: tests/config/test_data_center_model.py function make_data_center (line 18) | def make_data_center( function _mock_zones_config (line 43) | def _mock_zones_config(): class TestDataCenterID (line 58) | class TestDataCenterID: method test_id_format (line 59) | def test_id_format(self): class TestStringNotEmpty (line 64) | class TestStringNotEmpty: method test_empty_or_whitespace_rejected (line 76) | def test_empty_or_whitespace_rejected(self, kwargs: dict[str, str]): method test_valid_strings_accepted (line 80) | def test_valid_strings_accepted(self): class TestLonlatValid (line 84) | class TestLonlatValid: method test_valid_lonlat (line 85) | def test_valid_lonlat(self): method test_boundary_values (line 88) | def test_boundary_values(self): method test_longitude_too_low (line 92) | def test_longitude_too_low(self): method test_longitude_too_high (line 96) | def test_longitude_too_high(self): method test_latitude_too_low (line 100) | def test_latitude_too_low(self): method test_latitude_too_high (line 104) | def test_latitude_too_high(self): class TestDateValid (line 109) | class TestDateValid: method test_none_accepted (line 111) | def test_none_accepted(self, field: str): method test_valid_formats_parsed_to_date (line 124) | def test_valid_formats_parsed_to_date(self, field: str, value: str, ex... method test_date_object_accepted (line 129) | def test_date_object_accepted(self, field: str): method test_invalid_format_rejected (line 138) | def test_invalid_format_rejected(self, field: str, value: str): method test_invalid_calendar_date_rejected (line 146) | def test_invalid_calendar_date_rejected(self, field: str, value: str): class TestZoneKeyExists (line 151) | class TestZoneKeyExists: method test_valid_zone_key (line 152) | def test_valid_zone_key(self): method test_invalid_zone_key (line 155) | def test_invalid_zone_key(self): class TestDataCentersIdsAreUnique (line 162) | class TestDataCentersIdsAreUnique: method test_unique_ids_accepted (line 163) | def test_unique_ids_accepted(self): method test_duplicate_ids_rejected (line 171) | def test_duplicate_ids_rejected(self): class TestDataCentersUniqueProviderRegionZoneKey (line 183) | class TestDataCentersUniqueProviderRegionZoneKey: method test_unique_combinations_accepted (line 184) | def test_unique_combinations_accepted(self): method test_duplicate_combination_rejected (line 196) | def test_duplicate_combination_rejected(self): class TestDataCentersExtraFieldsForbidden (line 208) | class TestDataCentersExtraFieldsForbidden: method test_extra_fields_rejected (line 209) | def test_extra_fields_rejected(self): FILE: tests/config/test_emission_factors.py function test_all_emission_factor_error (line 12) | def test_all_emission_factor_error(snapshot): function test_all_emission_factors (line 29) | def test_all_emission_factors(snapshot): function test_get_zone_specific_co2eq_parameter_identical_return (line 35) | def test_get_zone_specific_co2eq_parameter_identical_return(): FILE: tests/test_capacity.py function test_get_capacity_data (line 12) | def test_get_capacity_data(): function test_get_capacity_from_list (line 50) | def test_get_capacity_from_list(): function test_get_capacity_with_source (line 64) | def test_get_capacity_with_source(): FILE: tests/test_co2eq_parameters.py function get_possible_modes (line 17) | def get_possible_modes() -> set[str]: function parse_json_file (line 22) | def parse_json_file(path: str): class CO2eqParametersAll (line 28) | class CO2eqParametersAll(unittest.TestCase): method check_valid_ratios_list (line 35) | def check_valid_ratios_list(ratios): method check_power_origin_ratios (line 39) | def check_power_origin_ratios(cls, callback1, callback2): method check_contributions (line 60) | def check_contributions(cls, contribution_name, callback): method check_is_renewable (line 71) | def check_is_renewable(cls, callback): method check_is_low_carbon (line 76) | def check_is_low_carbon(cls, callback): method test_power_origin_modes_are_valid (line 80) | def test_power_origin_modes_are_valid(self): method test_power_origin_ratio_annual_lists_have_valid_dates (line 92) | def test_power_origin_ratio_annual_lists_have_valid_dates(self): method test_power_origin_ratios_sum_to_1 (line 102) | def test_power_origin_ratios_sum_to_1(self): method test_required_keys_are_present (line 118) | def test_required_keys_are_present(self): method check_contribution_object (line 146) | def check_contribution_object(self, contribution, zone, mode, contribu... method check_contribution_datetimes (line 157) | def check_contribution_datetimes(self, contribution, zone, mode, contr... method test_is_renewable_valid_datetimes (line 180) | def test_is_renewable_valid_datetimes(self): method test_is_renewable_valid_contributions (line 189) | def test_is_renewable_valid_contributions(self): method test_is_low_carbon_valid_datetimes (line 203) | def test_is_low_carbon_valid_datetimes(self): method test_is_low_carbon_valid_contributions (line 212) | def test_is_low_carbon_valid_contributions(self): class BaseClasses (line 227) | class BaseClasses: class CO2eqParametersDirectAndLifecycleBase (line 230) | class CO2eqParametersDirectAndLifecycleBase(unittest.TestCase): method check_emission_factors (line 241) | def check_emission_factors(cls, callback): method check_emission_factor_values (line 258) | def check_emission_factor_values(cls, callback): method test_emission_factor_value_ranges (line 275) | def test_emission_factor_value_ranges(self): method test_emission_factor_modes_are_valid (line 309) | def test_emission_factor_modes_are_valid(self): method test_emission_factor_annual_lists_have_valid_dates (line 319) | def test_emission_factor_annual_lists_have_valid_dates(self): method test_emission_factor_annual_lists_are_not_empty (line 331) | def test_emission_factor_annual_lists_are_not_empty(self): method test_required_keys_are_present (line 344) | def test_required_keys_are_present(self): class CO2eqParametersDirect (line 366) | class CO2eqParametersDirect(BaseClasses.CO2eqParametersDirectAndLifecycl... class CO2eqParametersLifecycle (line 397) | class CO2eqParametersLifecycle(BaseClasses.CO2eqParametersDirectAndLifec... FILE: tests/test_exchanges_json.py class ExchangeJsonTestcase (line 6) | class ExchangeJsonTestcase(unittest.TestCase): method test_all_zones_in_zones_json (line 7) | def test_all_zones_in_zones_json(self): FILE: tests/test_parser_interface.py class ZoneParserFunction (line 85) | class ZoneParserFunction(NamedTuple): function undecorated (line 92) | def undecorated(o): class ParserInterfaceTestcase (line 114) | class ParserInterfaceTestcase(unittest.TestCase): method setUp (line 115) | def setUp(self): method test_interface (line 140) | def test_interface(self): method test_unused_files (line 181) | def test_unused_files(self): FILE: tests/test_update_capacity_configuration.py class updateCapacityConfigurationTestCase (line 11) | class updateCapacityConfigurationTestCase(unittest.TestCase): method test_capacity_config (line 12) | def test_capacity_config(self): method test_generate_zone_capacity_list (line 134) | def test_generate_zone_capacity_list(self): method test_generate_aggregated_capacity_config_dict (line 315) | def test_generate_aggregated_capacity_config_dict(self): method test_generate_aggregated_capacity_config_list (line 340) | def test_generate_aggregated_capacity_config_list(self): FILE: tests/test_zones_json.py class ZonesJsonTestcase (line 9) | class ZonesJsonTestcase(unittest.TestCase): method test_bounding_boxes (line 10) | def test_bounding_boxes(self): method test_sub_zones (line 17) | def test_sub_zones(self): method test_zones_from_geometries_exist (line 24) | def test_zones_from_geometries_exist(self):