sup3r.preprocessing.utilities.parse_features

Contents

sup3r.preprocessing.utilities.parse_features#

parse_features(features: str | list | None = None, data=None)[source]#

Parse possible inputs for features (list, str, None, ‘all’). If ‘all’ this returns all data_vars in data. If None this returns an empty list.

Note

Returns a string if input is a string and list otherwise. Need to manually get [features] if a list is required.

Parameters:
  • features (list | str | None) – Feature request to parse.

  • data (T_Dataset) – Data containing available features