openscm_calibration.scmdata_utils#
scmdata utility functions
Functions:
| Name | Description |
|---|---|
scmrun_as_dict |
Group an input into a dictionary with keys |
scmrun_as_dict #
scmrun_as_dict(
inp: BaseScmRun,
groups: Iterable[str],
separator: str = "_",
) -> dict[str, BaseScmRun]
Group an input into a dictionary with keys
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inp
|
BaseScmRun
|
Data to group |
required |
groups
|
Iterable[str]
|
Metadata keys to use to make the groups |
required |
separator
|
str
|
Separator for metadata values when making the keys |
'_'
|
Returns:
| Type | Description |
|---|---|
dict[str, BaseScmRun]
|
Grouped |