parameter_space
This module provides functions to generate parameter spaces for studies.
Functions:
| Name | Description |
|---|---|
convert_for_subvariables |
list[str], parameter_list: list) -> list: Convert the parameter list to a list of dictionaries with subvariables as keys. |
linspace |
list) -> np.ndarray: Generate a list of evenly spaced values over a specified interval. |
logspace |
list) -> np.ndarray: Generate a list of values that are evenly spaced on a log scale. |
list_values_path |
list[str], dic_common_parameters: dict[str, Any]) -> list[str]: Generate a list of path names from an initial path name. |
convert_for_subvariables(l_subvariables, parameter_list)
Convert the parameter list to a list of dictionaries with subvariables as keys.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l_subvariables
|
list[str]
|
List of subvariables. |
required |
parameter_list
|
list
|
List with the parameter values. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
List of dictionaries with subvariables as keys. |
Source code in study_da/generate/parameter_space.py
linspace(l_values_linspace)
Generate a list of evenly spaced values over a specified interval.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l_values_linspace
|
list
|
List with the values for the linspace function. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: List of evenly spaced values. |
Source code in study_da/generate/parameter_space.py
list_values_path(l_values_path_list, dic_common_parameters)
Generate a list of path names from an inital path name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l_values_path_list
|
list
|
List with the initial path names and number of paths. |
required |
dic_common_parameters
|
dict
|
Dictionary with the parameters common to the whole study. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
list[str]
|
List of final path values from the initial paths. |
Source code in study_da/generate/parameter_space.py
logspace(l_values_logspace)
Generate a list of values that are evenly spaced on a log scale.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l_values_logspace
|
list
|
List with the values for the logspace function. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: List of values that are evenly spaced on a log scale. |