Energy Collection๏ƒ

class emflow.assets.energycollection.Site(*, id: ~uuid.UUID = <factory>, name: str | None = None, timeseries: list[~timedatamodel.timeseries.TimeSeries] = <factory>, geometry: ~shapely.geometry.base.BaseGeometry | None = None, extra: dict = <factory>, lat: dataclasses.InitVar[float | None] = None, lon: dataclasses.InitVar[float | None] = None, members: list[~energydatamodel.element.Element] = <factory>, tz: ~datetime.tzinfo | None = None)[source]๏ƒ

Bases: Collection

A geographic site containing one or more assets.

add_child(obj: Element) None๏ƒ

Attach a child. Override in subclasses that support children.

property centroid: Point | None๏ƒ

Centroid of geometry, or None if no geometry.

children() list๏ƒ

Child elements for tree walking. Override in subclasses with children.

classmethod from_json(data: dict) Element๏ƒ

Deserialize from a JSON-compatible dict.

geometry: BaseGeometry | None = None๏ƒ
geometry_to_geojson(geometry)๏ƒ
index()๏ƒ

Build a dict[UUID, Element] index of the subtree rooted at self.

Use to resolve Reference objects against this tree.

lat: InitVar[float | None] = None๏ƒ
property latitude: float | None๏ƒ

Latitude, if geometry is a shapely Point; else None.

lon: InitVar[float | None] = None๏ƒ
property longitude: float | None๏ƒ

Longitude, if geometry is a shapely Point; else None.

name: str | None = None๏ƒ
to_dataframe()๏ƒ
to_geojson(exclude_none: bool = True)๏ƒ
to_json(*, exclude_fields: set | None = None) dict๏ƒ

Serialize to a JSON-compatible dict.

to_properties() dict๏ƒ

Domain-specific fields as a dict (excludes infra + children fields).

to_tree() str๏ƒ

Return the hierarchy rendered as an indented tree string.

Use print(element.to_tree()) to display it. In a notebook, printing the element directly (element) also renders the tree via __repr__.

tz: datetime.tzinfo | None = None๏ƒ
members: list[Element]๏ƒ
id: UUID๏ƒ
timeseries: list[TimeSeries]๏ƒ
extra: dict๏ƒ
class emflow.assets.energycollection.EnergyCommunity(*, id: ~uuid.UUID = <factory>, name: str | None = None, timeseries: list[~timedatamodel.timeseries.TimeSeries] = <factory>, geometry: ~shapely.geometry.base.BaseGeometry | None = None, extra: dict = <factory>, lat: dataclasses.InitVar[float | None] = None, lon: dataclasses.InitVar[float | None] = None, members: list[~energydatamodel.element.Element] = <factory>, tz: ~datetime.tzinfo | None = None)[source]๏ƒ

Bases: Collection

An energy community โ€” members share resources/balance.

add_child(obj: Element) None๏ƒ

Attach a child. Override in subclasses that support children.

property centroid: Point | None๏ƒ

Centroid of geometry, or None if no geometry.

children() list๏ƒ

Child elements for tree walking. Override in subclasses with children.

classmethod from_json(data: dict) Element๏ƒ

Deserialize from a JSON-compatible dict.

geometry: BaseGeometry | None = None๏ƒ
geometry_to_geojson(geometry)๏ƒ
index()๏ƒ

Build a dict[UUID, Element] index of the subtree rooted at self.

Use to resolve Reference objects against this tree.

lat: InitVar[float | None] = None๏ƒ
property latitude: float | None๏ƒ

Latitude, if geometry is a shapely Point; else None.

lon: InitVar[float | None] = None๏ƒ
property longitude: float | None๏ƒ

Longitude, if geometry is a shapely Point; else None.

name: str | None = None๏ƒ
to_dataframe()๏ƒ
to_geojson(exclude_none: bool = True)๏ƒ
to_json(*, exclude_fields: set | None = None) dict๏ƒ

Serialize to a JSON-compatible dict.

to_properties() dict๏ƒ

Domain-specific fields as a dict (excludes infra + children fields).

to_tree() str๏ƒ

Return the hierarchy rendered as an indented tree string.

Use print(element.to_tree()) to display it. In a notebook, printing the element directly (element) also renders the tree via __repr__.

tz: datetime.tzinfo | None = None๏ƒ
members: list[Element]๏ƒ
id: UUID๏ƒ
timeseries: list[TimeSeries]๏ƒ
extra: dict๏ƒ
class emflow.assets.energycollection.Portfolio(*, id: ~uuid.UUID = <factory>, name: str | None = None, timeseries: list[~timedatamodel.timeseries.TimeSeries] = <factory>, geometry: ~shapely.geometry.base.BaseGeometry | None = None, extra: dict = <factory>, lat: dataclasses.InitVar[float | None] = None, lon: dataclasses.InitVar[float | None] = None, members: list[~energydatamodel.element.Element] = <factory>, tz: ~datetime.tzinfo | None = None)[source]๏ƒ

Bases: Collection

A trading/asset portfolio aggregate.

add_child(obj: Element) None๏ƒ

Attach a child. Override in subclasses that support children.

property centroid: Point | None๏ƒ

Centroid of geometry, or None if no geometry.

children() list๏ƒ

Child elements for tree walking. Override in subclasses with children.

classmethod from_json(data: dict) Element๏ƒ

Deserialize from a JSON-compatible dict.

geometry: BaseGeometry | None = None๏ƒ
geometry_to_geojson(geometry)๏ƒ
index()๏ƒ

Build a dict[UUID, Element] index of the subtree rooted at self.

Use to resolve Reference objects against this tree.

lat: InitVar[float | None] = None๏ƒ
property latitude: float | None๏ƒ

Latitude, if geometry is a shapely Point; else None.

lon: InitVar[float | None] = None๏ƒ
property longitude: float | None๏ƒ

Longitude, if geometry is a shapely Point; else None.

name: str | None = None๏ƒ
to_dataframe()๏ƒ
to_geojson(exclude_none: bool = True)๏ƒ
to_json(*, exclude_fields: set | None = None) dict๏ƒ

Serialize to a JSON-compatible dict.

to_properties() dict๏ƒ

Domain-specific fields as a dict (excludes infra + children fields).

to_tree() str๏ƒ

Return the hierarchy rendered as an indented tree string.

Use print(element.to_tree()) to display it. In a notebook, printing the element directly (element) also renders the tree via __repr__.

tz: datetime.tzinfo | None = None๏ƒ
members: list[Element]๏ƒ
id: UUID๏ƒ
timeseries: list[TimeSeries]๏ƒ
extra: dict๏ƒ