Skip to main content

A python version of the NYgrid model

Project description

NYgrid-python

Latest Release latest release latest release
Build Status documentation build status python-package codeql
License license

A python version of the NYgrid model.

It contains the following components:

  • Optimal power flow (OPF) model
  • Renewable integration
  • Building electrification
  • Battery storage
  • Electric vehicle (EV) charging

Documentation

Full documentation can be found at readthedocs.

Installation

Install using pip

The nygrid package can be installed using PIP.

pip install nygrid

Install from the source

  1. Install Anaconda.

  2. Install Git.

  3. Clone the repository:

git clone https://github.com/boyuan276/NYgrid-python.git
  1. Create a conda environment:
conda env create -f NYgrid-python.yml
  1. Activate the environment:
conda activate NYgrid-python
  1. Install the package:
pip install -e .

Usage

  1. Activate the environment:
conda activate NYgrid-python
  1. Run the model:

    • Go to the examples folder.

    • Run the base year 2018 case:

      python 01_opf_2018NewParams_daily.py
      
    • Run the future year 2030 with policy scenarios:

      # 1) 2030BaselineCase
      python 02_opf_2030BaselineCase_daily.py
      
      # 2) 2030ContractCase
      python 03_opf_2030ContractCase_daily.py
      
      # 3) 2030StateScenario
      python 04_opf_2030StateScenario_daily.py
      
    • Note: Generation and load properties and profiles need to be prepared before running these cases.

Data

  1. Generation data: See examples/write_gen_prop_profiles_{case_name}.ipynb.

  2. Load data: See examples/write_load_profiles_{case_name}.ipynb.

License

MIT license.

See also

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

nygrid-0.1.2.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

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

nygrid-0.1.2-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file nygrid-0.1.2.tar.gz.

File metadata

  • Download URL: nygrid-0.1.2.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nygrid-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dc32e0a34a5705bfef07e1d943086989f7de2f7dc1432f44ea6ef129b4dcc8ef
MD5 4654f3e13afbacf932c6a8dd84bf6ac6
BLAKE2b-256 13331afc880b86abcbd6a74cfa2a4a6df8870f02b269b3c2b2e056df949ec675

See more details on using hashes here.

Provenance

The following attestation bundles were made for nygrid-0.1.2.tar.gz:

Publisher: python-publish.yml on boyuan276/NYgrid-python

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

File details

Details for the file nygrid-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nygrid-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nygrid-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86aebeb7ba3bd6f6f42e55f386bd0111b7bf3e45ff524f947b277a00db7cb64e
MD5 3c52450abfb229a394c9714da26698d5
BLAKE2b-256 d3afacd98c7f3fe1fccb8ccefb4f494ba84d7c3a3aaed19f7d81158347ea803a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nygrid-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on boyuan276/NYgrid-python

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