Features¶
-
class
feature.
Features
(data_dir=None, update=False, verbose=True)¶ A class for collecting codes of infrastructure features.
- Parameters
data_dir (str or None) – name of data directory, defaults to
None
update (bool) – whether to do an update check (for the package data), defaults to
False
verbose (bool or int) – whether to print relevant information in console, defaults to
True
- Variables
Name (str) – name of the data
Key (str) – key of the dict-type data
HomeURL (str) – URL of the main homepage
LUDKey (str) – key of the last updated date
Catalogue (dict) – catalogue of the data
DataDir (str) – path to the data directory
CurrentDataDir (str) – path to the current data directory
HabdWildKey (str) – key of the dict-type data of HABD and WILD
HabdWildPickle (str) – name of the pickle file of HABD and WILD
OLENeutralNetworkKey (str) – key of the dict-type data of OLE neutral sections
WaterTroughsKey (str) – key of the dict-type data of water troughs
WaterTroughsPickle (str) – name of the pickle file of water troughs
TelegraphKey (str) – key of the dict-type data of telegraphic codes
TelegraphPickle (str) – name of the pickle file of telegraphic codes
BuzzerKey (str) – key of the dict-type data of buzzer codes
BuzzerPickle (str) – name of the pickle file of buzzer codes
Example:
>>> from pyrcs.other_assets import Features >>> features = Features() >>> print(features.Name) Infrastructure features
Methods
collect_buzzer_codes
([…])Collect buzzer codes from source web page.
Collect codes of HABDs and WILDs from source web page.
Collect telegraph code words from source web page.
Collect codes of water troughs from source web page.
fetch_buzzer_codes
([update, pickle_it, …])Fetch buzzer codes from local backup.
fetch_features_codes
([update, pickle_it, …])Fetch features codes from local backup.
fetch_habds_and_wilds
([update, pickle_it, …])Fetch codes of HABDs and WILDs from local backup.
fetch_telegraph_codes
([update, pickle_it, …])Fetch telegraph code words from local backup.
fetch_water_troughs
([update, pickle_it, …])Fetch codes of water troughs from local backup.