model_input_schemas
AbstractScenarioModel
Bases: DataFrameModel
Base schema for scenario dataframe as used when creating a model.
Structure:
- Index: datetime (time series)
- Columns:
- load_
Load and screen-current values describe the interval ending at their timestamp. The first row initializes the simulation; it does not drive a preceding interval.
Config
Configuration for the schema model.
check_datetime_index
classmethod
check_datetime_index(df: DataFrame)
Ensure index is datetime-like or timedelta-like.
Source code in cable_thermal_model/model/schemas/model_input_schemas.py
45 46 47 48 49 | |
check_no_missing_values
classmethod
check_no_missing_values(df: DataFrame)
Ensure there are no missing values in the scenario dataframe.
Source code in cable_thermal_model/model/schemas/model_input_schemas.py
51 52 53 54 55 | |
ScenarioModelAir
ScenarioModelSoil
get_screen_current_column
get_screen_current_column(cable_key: CableKey) -> str
Return the optional scenario column for a cable's RMS screen current.
Source code in cable_thermal_model/model/schemas/model_input_schemas.py
17 18 19 | |