Units

class ixmp4.core.unit.Unit(*args, _model: BaseModel | None = None, **kwargs)

Bases: BaseModelFacade

DeletionPrevented

alias of UnitDeletionPrevented

NotFound

alias of UnitNotFound

NotUnique

alias of UnitNotUnique

property created_at: datetime | None
property created_by: str | None
delete()
property docs
property id: int
property name: str
class ixmp4.core.unit.UnitRepository(_backend: Backend | None = None)

Bases: BaseFacade

create(name: str) Unit
delete(x: Unit | int | str)
delete_docs(name: str) None
get(name: str) Unit
get_docs(name: str) str | None
list(name: str | None = None) list[Unit]
set_docs(name: str, description: str | None) str | None
tabulate(name: str | None = None) DataFrame