Features.collect_habds_and_wilds¶
-
Features.
collect_habds_and_wilds
(confirmation_required=True, verbose=False)[source]¶ Collect codes of HABDs and WILDs from source web page.
HABDs - Hot axle box detectors
WILDs - Wheel impact load detectors
- Parameters
confirmation_required (bool) – whether to prompt a message for confirmation to proceed, defaults to
True
verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to
False
- Returns
data of HABDs and WILDs, and date of when the data was last updated
- Return type
dict or None
Example:
>>> from pyrcs.other_assets import Features >>> features = Features() >>> habds_and_wilds_codes_dat = features.collect_habds_and_wilds() # To collect data of HABD and WILD? [No]|Yes: yes >>> type(habds_and_wilds_codes_dat) <class 'dict'> >>> print(list(habds_and_wilds_codes_dat.keys())) ['HABD and WILD', 'Last updated date']