NYgrid-python
| Latest Release |
|
| Build Status |
|
| 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
git clone https://github.com/boyuan276/NYgrid-python.git
- Create a conda environment:
conda env create -f NYgrid-python.yml
- Activate the environment:
conda activate NYgrid-python
- Install the package:
pip install -e .
Usage
- Activate the environment:
conda activate NYgrid-python
-
Run the model:
-
Go to the
examplesfolder. -
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
-
Generation data: See
examples/write_gen_prop_profiles_{case_name}.ipynb. -
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)
| File | Size | Uploaded | |
|---|---|---|---|
| nygrid-0.1.2.tar.gz | 36.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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