fre.app.helpers module

fre.app.helpers.change_directory(new_path: str)

Temporarily change the directory

Parameters:

new_path (str) – Path to change into

fre.app.helpers.get_variables(yml: dict, pp_comp: str) dict

Retrieve any variables specified with active pp components from the yaml

Parameters:
  • yml (dict) – loaded yaml file

  • pp_comp (str) – Active pp component

Raises:

ValueError – if the active pp component is not found in the yaml configuration

Returns:

dictionary of {source name: [variables]} - the values are a list of specified variables - if no variables specified, the value will be ‘all’

Return type:

dict