solarforecastarbiter.datamodel.SolarPowerPlant

class solarforecastarbiter.datamodel.SolarPowerPlant(name: str, latitude: float, longitude: float, elevation: float, timezone: str, site_id: str = '', provider: str = '', extra_parameters: str = '', climate_zones: Tuple[str, ...] = (), modeling_parameters: solarforecastarbiter.datamodel.PVModelingParameters = <factory>)[source]

Class for keeping track of metadata associated with solar power plant Sites. Adds additional parameters to the Site dataclass.

Parameters:modeling_parameters (PVModelingParameters) – Modeling parameters for a single axis system
__init__(name: str, latitude: float, longitude: float, elevation: float, timezone: str, site_id: str = '', provider: str = '', extra_parameters: str = '', climate_zones: Tuple[str, ...] = (), modeling_parameters: solarforecastarbiter.datamodel.PVModelingParameters = <factory>) → None

Methods

__init__(name, latitude, longitude, …)
from_dict(input_dict[, raise_on_extra]) Construct a dataclass from the given dict, matching keys with the class fields.
replace(**kwargs) Convience wrapper for dataclasses.replace() to create a new dataclasses from the old with the given keys replaced.
to_dict() Convert the dataclass into a dictionary suitable for uploading to the API.

Attributes

climate_zones
extra_parameters
provider
site_id