pyspi.utils.filter_spis
Filter a pyspi config YAML file using a list of keywords and return a new YAML file containing the reduced set of SPIs in the current working directory.
Example
Parameters:
Returns
Nothing
- A new file is created in the current working directory.
Raises:
ValueError: Raised in three scenarios:
If the
keywords
parameter is not a list.If any of the provided keywords is not a string.
If no SPIs match the specified keywords.
FileNotFoundError: Triggered if the specified
configfile
cannot be found or if the defaultconfig.yaml
is not present in the expected directory.OError: Occurs if there's an error reading the specified YAML file.
Last updated