Base system build

Classes

BaseSystemBuilder

Functions

_gather_variable_correlations(geopackage_filepath)

Input originally from the input Excel-file. It defines per combination of two parameters the correlation; a

_gather_calculation_input(df_expanded, ...)

_generate_single_calculation(row_calculation_metadata, ...)

Module Contents

_gather_variable_correlations(geopackage_filepath)

Input originally from the input Excel-file. It defines per combination of two parameters the correlation; a value between 0.0 (no correlation) and 1.0 (fully correlated). By default, no correlation is specified for parameter combinations, i.e. the probabilistic library automatically assigns 0.0 as correlation for the combination. The correlation applies for the entire trajectory.

TODO: This setup applies for the entire trajectory. In future versions of the code the user should be able to assign the correlation on vak, scenario and uittredepunten level.

Returns:

Parameters:

geopackage_filepath (str)

Return type:

List[Tuple[str, str, float]]

_gather_calculation_input(df_expanded, uittredepunt_id, ondergrondscenario_naam)
Parameters:
  • df_expanded (pandas.DataFrame)

  • uittredepunt_id (int)

  • ondergrondscenario_naam (str)

Return type:

List

_generate_single_calculation(row_calculation_metadata, vak_id, df_expanded, system_class, variable_correlations)
Parameters:
  • row_calculation_metadata (pandas.Series)

  • vak_id (int)

  • df_expanded (pandas.DataFrame)

  • variable_correlations (List[Tuple[str, str, float]])

Return type:

Systemcalculation

class BaseSystemBuilder(geopackage_filepath, to_run_vakken_ids)
Parameters:
  • geopackage_filepath (str)

  • to_run_vakken_ids (list[int])

system_class
geopackage_filepath
df_expanded
setup_iteration_df()
Return type:

pandas.DataFrame

build_instance(row_unique)
Return type:

Systemcalculation