Skip to content

Types & Exceptions

Core data types and exception classes.

StaticValue

Represents a static (non-time-varying) attribute value.

Methods:

  • as_f64((self) -> float)
  • data_type((self) -> str)
  • to_json((self) -> str)
  • value((self) -> Union[float, int, bool, str])

CreateNetworkRequest

Request structure for creating a new network.

CreateComponentRequest

Request structure for creating a new component (single network per database).

Component

Represents a component in the energy system model (single network per database).

PyConvexityError

Base exception for all PyConvexity errors

DatabaseError

Database-related errors

ValidationError

Data validation error

ComponentNotFound

Component not found in database

AttributeNotFound

Attribute not found for component

© Copyright 2025 Bayesian Energy