echo.validators module
- echo.validators.block_rates_validator(instance, attributes, value) None
- echo.validators.bound_order_validator(instance, attributes, value) None
Checks that lower bound is smaller than upper bound.
- echo.validators.check_initial_state_of_charge_within_bounds(initial_state_of_charge: float, min_soc: float, max_capacity: float) None
- echo.validators.depth_of_discharge_validator(instance, attributes, value) None
Validator for depth of discharge.
- echo.validators.export_constraint_validator(instance, attributes, value) None
- echo.validators.import_constraint_validator(instance, attributes, value) None
- echo.validators.import_or_export_demand_set_validator(instance, attributes, value) None
- echo.validators.is_non_negative(v: dict[Any, float] | list[float] | set[float] | float | ndarray | None, err_msg: str) dict[Any, float] | list[float] | set[float] | float | ndarray | None
Tests is a ‘v’ is non negative
A value of 0 is considered non-negative (i.e. doesn’t raise a ValueError) for the purposes of this test
- echo.validators.is_non_positive(v: dict[Any, float] | list[float] | set[float] | float | ndarray | None, err_msg: str) dict[Any, float] | list[float] | set[float] | float | ndarray | None
Tests is a ‘v’ is non positive
A value of 0 is considered non-positive (i.e. doesn’t raise a ValueError) for the purposes of this test
- echo.validators.non_negative_cop_validator(instance, attributes, value) None
- echo.validators.nonnegative_load_validator(instance, attributes, value) None
- echo.validators.nonpositive_generation_validator(instance, attributes, value) None
- echo.validators.partial_load_cop_validator(instance, attributes, value) None
- echo.validators.partitions_port_validator(instance, attributes, value) None
Validate that set of ports defined across different partitions are unique
- echo.validators.piecewise_arrays_validator(instance, attributes, value) None
- echo.validators.ports_have_same_units_validator(instance, attributes, value) None
Raises a ConfigurationError if the units of the ports are not the same
- echo.validators.ports_match_nominal_units_validator(instance, attributes, value) None
- echo.validators.reset_periods_validator(instance, attributes, value) None
- echo.validators.set_bounds_from_piecewise_points_validator(instance, attributes, value) None
- echo.validators.set_output_bounds_validator(instance, attributes, values) None
- echo.validators.soc_conserv_validator(instance, attributes, value) None
Check there is a converv cost and availability when soc conserv is enabled
- echo.validators.startup_efficiency_validator(instance, attributes, value) None
- echo.validators.temperature_dependent_cop_validator(instance, attributes, value) None
- echo.validators.temperature_range_validator(instance, attributes, value) None
Temperature range must be non-zero and positive
- echo.validators.thermal_units_validator(instance, attributes, value) None
- echo.validators.update_constraint_values(instance, attributes, value) None