Skip to main content

Distributed Wind Generation Model

Project description

Distributed Wind Generation Model (dWind)

License PyPI - Version Jupyter Book Badge

Pre-commit isort Ruff

Please note that at this time the model can only be run on NatlLabRockies's Kestrel HPC system. Though a savvy user could recreate our data in their own computing environment and update the internal pointers in the example configuration at examples/larimer_county_btm_baseline_2025.toml and examples/model_config.toml.

Installing dwind

  1. Install Anaconda or Miniconda (recommended) if not already installed.

  2. Clone the repository

    git clone https://github.com/NatlLabRockies/dwind.git
    
  3. Navigate to the dwind repository.

    cd /path/to/dwind
    
  4. Create your dwind environment using our recommended settings and all required dependencies.

    conda env create -f environment.yml
    

Running

Configuring

dWind relies on 2 configuration files: 1) a system-wise setting that can be shared among a team, and 2) a run-specific configuration file. Both will be described below.

Primary model configuration

The primary model configuration should look exactly like (or be compatible with) examples/model_config.toml to ensure varying fields are read correctly throughout the model.

Internally, dWind is able to convert the following data to adhere to internal usage:

  • Any field with "DIR" is converted to a Python pathlib.Path object for robust file handling
  • SQL credentials and constructor strings are automatically formed in the [sql] table for easier construction of generic connection strings. Specifically the {USER} and {PASSWORD} fields get replaced with their corresponding setting in the same table.

Configuration, the primary class handling this data allows for dot notation and dictionary-style attribute calling at all levels of nesting. This means, config.pysam.outputs.btm and config.pysam.outputs["btm"] are equivalent. This makes for more intuitive dynamic attribute fetching when updating the code for varying cases.

Run configuration

The run-specific configuration should look like examples/larimer_county_btm_baseline_2025.toml, which controls all the dynamic model settings, HPC configurations, and a pointer to the primary model configuration described above.

Run the model

dwind has a robust CLI interface allowing for the usage of python path/to/dwind/dwind/main.py or by directly callingdwind. For more details on using the CLI, use the --help flag, or visit our CLI documentation page https://natlabrockies.github.io/dwind/cli.html

To run the model, it is recommended to use the following workflow from your analysis folder.

  1. Start a new screen session on Kestrel.

    screen -S <analysis-name>
    
  2. Load your conda environment with dwind installed.

    module load conda
    conda activate <env_name>
    
  3. Navigate to your analysis folder if your relative data locations in your run configuration are relative to the analysis folder.

    cd /path/to/analysis/location
    
  4. Run the model.

    dwind run config examples/larimer_county_btm_baseline_2025.toml
    
  5. Disconnect your screen Ctrl + a + d and wait for the analysis to complete and view your results.

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

dwind-0.4.tar.gz (67.0 kB view details)

Uploaded Source

Built Distribution

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

dwind-0.4-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

Details for the file dwind-0.4.tar.gz.

File metadata

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

File hashes

Hashes for dwind-0.4.tar.gz
Algorithm Hash digest
SHA256 6ed1194f65b1d560ecc5de6a95e622b2fd94b55eb03fc2c2e519932c9c699597
MD5 18eb11114ee8c8cefbdc7ec44a88194d
BLAKE2b-256 413c452f5b5da360dbfacbb3d0006e51296068fd2a6cc541bec2304cf3368e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dwind-0.4.tar.gz:

Publisher: python-publish.yml on NatLabRockies/dwind

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

File details

Details for the file dwind-0.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dwind-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39d74f5ce95efe87be7c0cc59b2e3514547935f88423947801376a580695c720
MD5 d0d4ef3210ea1f55a9b841f703d4e5a3
BLAKE2b-256 273faff0486b75d1e1db883717e96d73dc8d6db33f18c1df4120a0239c8a6fb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for dwind-0.4-py3-none-any.whl:

Publisher: python-publish.yml on NatLabRockies/dwind

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