flexops.costing.load_dr_program¶
- flexops.costing.load_dr_program(source: str | Path | dict | None) dict | None¶
Load a demand-response program (v0: containers-only; None-safe).
EECO 0.4.2 exposes no DR API, so a DR program is a plain records structure (a flex-pse placeholder) loaded into a
DRConfigcontainer. No DR constraints are built from it in v0.- Parameters:
source – A JSON DR-program file path, an in-memory dict, or
None.- Returns:
The loaded DR program object, or
NonewhensourceisNone.- Raises:
FlexDataError – If the file cannot be read or parsed; the message names the file.