Skip to content

cosmotech.coal.utils

cosmotech.coal.utils

Functions:

Name Description
strtobool

strtobool(string)


cosmotech.coal.utils.configuration.Dotdict

Bases: dict


              flowchart TD
              cosmotech.coal.utils.configuration.Dotdict[Dotdict]

              

              click cosmotech.coal.utils.configuration.Dotdict href "" "cosmotech.coal.utils.configuration.Dotdict"
            

dot.notation access to dictionary attributes

Methods:

Name Description
merge

merge(d)


cosmotech.coal.utils.configuration.Configuration

Bases: Dotdict


              flowchart TD
              cosmotech.coal.utils.configuration.Configuration[Configuration]
              cosmotech.coal.utils.configuration.Dotdict[Dotdict]

                              cosmotech.coal.utils.configuration.Dotdict --> cosmotech.coal.utils.configuration.Configuration
                


              click cosmotech.coal.utils.configuration.Configuration href "" "cosmotech.coal.utils.configuration.Configuration"
              click cosmotech.coal.utils.configuration.Dotdict href "" "cosmotech.coal.utils.configuration.Dotdict"
            

Methods:

Name Description
merge_in
safe_get

merge_in(dic)

safe_get(key, default=None)


cosmotech.coal.utils.decorator

Functions:

Name Description
timed

timed(operation, debug=False)


cosmotech.coal.utils.input_collector.InputCollector

Methods:

Name Description
fetch_dataset
fetch_parameter
fetch_workspace_file
fetch

fetch_dataset(dataset_name)

fetch_parameter(param_name)

fetch_workspace_file(file_name)

fetch(name)


cosmotech.coal.utils.input_collector.DatasetCollector

Methods:

Name Description
collect
fetch

collect()

fetch(dataset_name)


cosmotech.coal.utils.input_collector.WorkspaceCollector

Methods:

Name Description
collect
fetch

collect()

fetch(file_name)


cosmotech.coal.utils.input_collector.ParameterCollector

Methods:

Name Description
read_parameters_json
collect
fetch_parameter
fetch_file_path
fetch

read_parameters_json()

collect()

fetch_parameter(param_name)

fetch_file_path(param_name)

fetch(param_name)