Skip to main content

ZEN-creator allows for the creation and management of datasets for ZEN-garden.

Project description

ZEN-creator

Lightweight utilities for creating and managing ZEN energy-system models and associated datasets. Full developer and user documentation is available online.

Quick start

Installation (recommended)

  • Create the conda environment included with the repository:
conda env create -f zen_creator_env.yml
conda activate zen-creator-env
  • Or install in editable mode with pip:
python -m pip install -e .

Basic usage

Programmatic usage is the recommended way to build and manipulate ZEN models. The central entry point is the Model class which can be constructed in several ways: directly, from a configuration file, or by loading an existing ZEN-garden input folder.

from pathlib import Path
from zen_creator.model import Model

# 1) Create a model from a configuration file
model = Model.from_config(Path("config.yaml"))
model.build()
model.validate()
model.write()

# 2) Load an existing ZEN-garden input folder and update
existing = Path("existing_model")
model2 = Model.from_existing(existing)
model2.name = "updated_model"
model2.build()
model2.write()

# 3) Create an empty model and add sectors/elements programmatically
m = Model()
m.add_sector_by_name("electricity")
m.add_element_by_name("electricity", generic="carrier")
m.build()

Useful properties

  • model.carriers, model.technologies: dictionaries of elements
  • model.output_path: path where the model will be written

Documentation

The full documentation (API reference, developer guide and examples) is hosted online: ZEN-creator documentation

Contributing

project Contribution Guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zen_creator-1.3.0.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zen_creator-1.3.0-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file zen_creator-1.3.0.tar.gz.

File metadata

  • Download URL: zen_creator-1.3.0.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zen_creator-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9daca7c365d5049ce0ccf3436261a0a86a0532cf8caa6ab6c8a1112ac515088f
MD5 997a9176d2c6f68ad80839e91d6b03cb
BLAKE2b-256 a01fe6efca723aab2e1842844e93361cba961d9704e098d99ceed7096739c448

See more details on using hashes here.

Provenance

The following attestation bundles were made for zen_creator-1.3.0.tar.gz:

Publisher: bump_and_release.yml on ZEN-universe/ZEN-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zen_creator-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: zen_creator-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 59.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zen_creator-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 766e2a8b36d612863f30e36c6f68b0ef6d82477af19154dc4dab58e7b16beae0
MD5 a50eeb9c72c5a992cfa253f8f9e0820e
BLAKE2b-256 8f85b7c0c298e70b996c787f601db70689d45bafc51b4b99a17e61bacc3f587f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zen_creator-1.3.0-py3-none-any.whl:

Publisher: bump_and_release.yml on ZEN-universe/ZEN-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page