Electrification.collect_etz_codes¶
-
Electrification.
collect_etz_codes
(confirmation_required=True, verbose=False)[source]¶ Collect OLE section codes for national network energy tariff zones from source web page.
- Parameters
confirmation_required (bool) – whether to require users to confirm and proceed, defaults to
True
verbose (bool or int) – whether to print relevant information in console as the function runs, 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(confirmation_required=False) >>> type(etz_ole_dat) dict >>> list(etz_ole_dat.keys()) ['National network energy tariff zones', 'Last updated date'] >>> type(etz_ole_dat['National network energy tariff zones']) dict >>> list(etz_ole_dat['National network energy tariff zones'].keys()) ['Railtrack', 'Notes', 'Network Rail']