Features

class feature.Features(data_dir=None, update=False, verbose=True)[source]

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 check on update and proceed to update the package data, defaults to False

  • verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to True

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_habds_and_wilds([…])

Collect codes of HABDs and WILDs from source web page.

collect_telegraph_codes([…])

Collect telegraph code words from source web page.

collect_water_troughs([…])

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.

parse_vulgar_fraction_in_length(x)

Parse ‘VULGAR FRACTION’ for ‘Length’ of water trough locations.