Skip to main content

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

Metadata

Release files for nygrid 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nygrid 0.1.2
File Size Uploaded
nygrid-0.1.2.tar.gz 36.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nygrid 0.1.2
File Interpreter ABI Platform
nygrid-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 73.1 kB

Release files / nygrid-0.1.2.tar.gz

Download URL nygrid-0.1.2.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc32e0a34a5705bfef07e1d943086989f7de2f7dc1432f44ea6ef129b4dcc8ef
BLAKE2b-256 checksum
How to use checksums
13331afc880b86abcbd6a74cfa2a4a6df8870f02b269b3c2b2e056df949ec675
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 13, 2024.

Transparency log

Release files / nygrid-0.1.2-py3-none-any.whl

Download URL nygrid-0.1.2-py3-none-any.whl
Size 36.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86aebeb7ba3bd6f6f42e55f386bd0111b7bf3e45ff524f947b277a00db7cb64e
BLAKE2b-256 checksum
How to use checksums
d3afacd98c7f3fe1fccb8ccefb4f494ba84d7c3a3aaed19f7d81158347ea803a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 13, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page