Electrification.collect_etz_codes¶
-
Electrification.
collect_etz_codes
(confirmation_required=True, verbose=False)¶ Collect OLE section codes for national network energy tariff zones from source web page.
- Parameters
confirmation_required (bool) – whether to confirm before proceeding, defaults to
True
verbose (bool or int) – whether to print relevant information in console, defaults to
False
- Returns
OLE section codes for national network energy tariff zones
- Return type
dict or None
Example:
>>> from pyrcs.line_data import Electrification >>> elec = Electrification() >>> etz_ole_dat = elec.collect_etz_codes() To collect section codes for OLE installations: national network energy... yes >>> type(etz_ole_dat) dict >>> list(etz_ole_dat.keys()) ['National network energy tariff zones', 'Last updated date'] >>> print(elec.TariffZonesKey) National network energy tariff zones >>> tariff_zone_codes = etz_ole_dat[elec.TariffZonesKey] >>> type(tariff_zone_codes) dict >>> list(tariff_zone_codes.keys()) ['Railtrack', 'Notes', 'Network Rail']