Features

class feature.Features(data_dir=None, update=False)[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

Example:

>>> from pyrcs.other_assets import Features

>>> features = Features()

>>> print(features.Name)
Infrastructure features

Methods

Features.cdd_features(*sub_dir, **kwargs)

Change directory to package data directory and sub-directories (and/or a file).

Features.collect_buzzer_codes([…])

Collect buzzer codes from source web page.

Features.collect_habds_and_wilds([…])

Collect codes of HABDs and WILDs from source web page.

Features.collect_telegraph_codes([…])

Collect telegraph code words from source web page.

Features.collect_water_troughs([…])

Collect codes of water troughs from source web page.

Features.fetch_buzzer_codes([update, …])

Fetch buzzer codes from local backup.

Features.fetch_features_codes([update, …])

Fetch features codes from local backup.

Features.fetch_habds_and_wilds([update, …])

Fetch codes of HABDs and WILDs from local backup.

Features.fetch_telegraph_codes([update, …])

Fetch telegraph code words from local backup.

Features.fetch_water_troughs([update, …])

Fetch codes of water troughs from local backup.

Features.parse_vulgar_fraction_in_length(x)

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