Download models.py from pvsai/PowwerUp: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/pvsai/PowwerUp/resolve/main/models.py
- Command line
-
hf download hf://spaces/pvsai/PowwerUp/models.py
-
curl -L -o models.py https://huggingface.co/spaces/pvsai/PowwerUp/resolve/main/models.py
667 Bytes
| from pydantic import Field | |
| from openenv.core.env_server.types import Action, Observation | |
| class BatteryAction(Action): | |
| """Action for the Battery environment.""" | |
| market_choice: float = Field(..., ge=0.0, le=1.0, description=">=0.6 for Ancillary, else Arbitrage") | |
| p_fraction: float = Field(..., ge=-1.0, le=1.0, description=">0 discharge/sell, <0 charge/buy") | |
| class BatteryObservation(Observation): | |
| """Observation from the Battery environment.""" | |
| energy_price: float = Field(..., description="Energy market price") | |
| fcr_price: float = Field(..., description="FCR market price") | |
| soc: float = Field(..., description="Battery State of Charge") | |