primo-optimizer

PRIMO - The P&A Project Optimizer Toolkit aims to provide multi-scale, optimization-based, open source computational tools and models to support the Methane Emissions Reduction Program (MERP) and the National Emissions Reduction Initiative (NEMRI).

https://github.com/nemri-org/primo-optimizer

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.7%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

PRIMO - The P&A Project Optimizer Toolkit aims to provide multi-scale, optimization-based, open source computational tools and models to support the Methane Emissions Reduction Program (MERP) and the National Emissions Reduction Initiative (NEMRI).

Basic Info
  • Host: GitHub
  • Owner: NEMRI-org
  • License: other
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 16.4 MB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 10
  • Open Issues: 10
  • Releases: 5
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Codeowners

README.md

PRIMO - The P&A Project Optimizer Toolkit

PRIMO - The P&A Project Optimizer Toolkit aims to provide multi-scale, simulation-based, open source computational tools and models to support the Methane Emissions Reduction Program (MERP) and the National Emissions Reduction Initiative (NEMRI).

Project Status

PyPI - Python Version Pypi Checks codecov Black Imports: isort Documentation Status Contributors Merged PRs Issue stats Downloads

Getting Started

Our complete documentation is available on readthedocs, but here is a summarized set of steps to get started using the framework.

While not required, we encourage the installation of Anaconda or Miniconda and using the conda command to create a separate python environment in which to install the PRIMO Toolkit.

Regular users can use conda to create a new "primo" environment. bash conda env create -f conda-env.yml

This creates a new conda environment with the name "primo" that comes installed with all required dependencies to solve PRIMO's optimization problems.

Developers can create a new "primo" environment by executing: bash conda env create -f conda-env-dev.yml

Activate the new environment with: bash conda activate primo

Additionally, developers should complete the installation of the playwright package which is required for running tests. bash playwright install

To test the installation of the primo package, execute: pytest primo\utils\tests\test_imports.py The above test, if executed successfully, confirms that primo package is now installed and available in the "primo" package that was just created.

To use the utilities implemented in the PRIMO package that query the U.S. Census API and Bing Maps API, appropriate API keys must be obtained by signing up with the respective services. These keys must be configured in a .env file in the parent directory. For more details, please see: API Keys

Additionally, use of elevation based utilities requires the user to provide a GeoTIFF file that provides elevation data across the region of interest. Users can download this data from USGS Science Data Catalog. For more details, please see: Elevation Data

Users can also employ other commercial solvers, for example Gurobi, to solve the optimization problem. However, users are responsible for configuring and setting up these solvers themselves.

General, background and overview information is available at the NEMRI website.

Running PRIMO with Binder

You can run PRIMO with Binder: a public cloud service that provides a temporary and short-lived sandbox environment to run PRIMO without installing any software locally.

Quickstart

You can launch the Binder environment by clicking on the following badge: Binder

Key Notes

  • Binder environments are automatically destroyed after a few minutes of inactivity. To avoid lost work, please download the notebook file on your local machine periodically.
  • The Binder provided environment is public and insecure. Please do not use this environment to work with sensitive data.

Funding acknowledgements

This work was conducted as part of the National Emissions Reduction Initiative with support through the Environmental Protection Agency - Methane Emissions Reduction Program within the U.S. Department of Energy’s Office of Fossil Energy and Carbon Management (FECM). As of 2023, additional support was provided by FECM’s Solid Oxide Fuel Cell Program, and Transformative Power Generation Program.

Contributing

By contributing to this repository, you are agreeing to all the terms set out in the LICENSE.md and COPYRIGHT.md files in this directory.

Owner

  • Name: NEMRI
  • Login: NEMRI-org
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: "Puranik"
    given-names: "Yash"
  - family-names: "Kakkad"
    given-names: "Dev"
  - family-names: "Jaffe"
    given-names: "Tyler"
  - family-names: "Li"
    given-names: "Ruonan"
  - family-names: "Strahl"
    given-names: "William"
  - family-names: "Tumbalam Gooty"
    given-names: "Radhakrishna"
  - family-names: "Lee"
    given-names: "Sangbum"
  - family-names: "Zamarripa"
    given-names: "Miguel"
  - family-names: "Drouven"
    given-names: "Markus"
title: "PRIMO - The P&A Project Optimizer"
url: "https://github.com/NEMRI-org/primo-optimizer/"
license-url: "https://github.com/NEMRI-org/primo-optimizer/blob/main/LICENSE.md"
version: 0.1
doi: 10.18141/2439193
date-released: 2024-9-03
identifiers:
  - description: "NETL's Energy Data eXchange Archive"
    type: url
    value: "https://edx.netl.doe.gov/dataset/primo-the-p-a-project-optimizer"

GitHub Events

Total
  • Create event: 6
  • Release event: 6
  • Issues event: 17
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 54
  • Push event: 27
  • Pull request event: 63
  • Pull request review event: 231
  • Pull request review comment event: 224
  • Fork event: 3
Last Year
  • Create event: 6
  • Release event: 6
  • Issues event: 17
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 54
  • Push event: 27
  • Pull request event: 63
  • Pull request review event: 231
  • Pull request review comment event: 224
  • Fork event: 3

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 2
  • Total pull requests: 9
  • Average time to close issues: 3 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.56
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 9
  • Average time to close issues: 3 months
  • Average time to close pull requests: 2 days
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.56
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • apd-ypuranik (9)
  • strahlw (5)
  • Jaffe11 (2)
  • radhakrishnatg (1)
Pull Request Authors
  • apd-ypuranik (26)
  • radhakrishnatg (10)
  • DevKakkad32 (8)
  • ruonanli61 (6)
  • strahlw (6)
  • Jaffe11 (4)
Top Labels
Issue Labels
good first issue (3) testing (2) documentation (2) enhancement (1) bug (1) help wanted (1)
Pull Request Labels
enhancement (5) documentation (2) testing (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 13 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
pypi.org: primo-optimizer

PRIMO - The P&A Project Optimizer

  • Homepage: https://edx.netl.doe.gov/nemri/
  • Documentation: https://primo.readthedocs.io/en/latest/
  • License: License ======= PRIMO - The P&A Project Optimizer Toolkit Copyright (c) 2023---2026, by the software owners: KeyLogic Systems, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the U.S. Dept. of Energy, National Energy Technology Laboratory, KeyLogic Systems, LLC, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the features, functionality or performance of the source code ("Enhancements") to anyone; however, if you choose to make your Enhancements available either publicly, or directly to National Energy Technology Laboratory, or directly to KeyLogic Systems, LLC, without imposing a separate written license agreement for such Enhancements, then you hereby grant National Energy Technology Laboratory and KeyLogic Systems, LLC the following license: a non-exclusive, royalty-free perpetual license to install, use, modify, prepare derivative works, incorporate into other computer software, distribute, and sublicense such enhancements or derivative works thereof, in binary and source code form.
  • Latest release: 0.2.1
    published over 1 year ago
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 13 Last month
Rankings
Dependent packages count: 10.5%
Average: 34.9%
Dependent repos count: 59.3%
Maintainers (1)
Last synced: 8 months ago

Dependencies

.github/workflows/checks.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
docs/Dockerfile docker
  • sphinxdoc/sphinx-latexpdf latest build
requirements-dev.txt pypi
requirements.txt pypi
.github/workflows/demo.yml actions
  • actions/checkout v4 composite
  • conda-incubator/setup-miniconda v3 composite
pyproject.toml pypi
  • appengine-python-standard *
  • censusgeocode *
  • fast_autocomplete [levenshtein]
  • folium *
  • geopandas *
  • gurobipy *
  • haversine *
  • highspy *
  • ipyfilechooser *
  • ipyleaflet *
  • ipywidgets *
  • kneed *
  • matplotlib *
  • notebook *
  • numpy <=1.28
  • openpyxl *
  • pandas *
  • pyarrow *
  • pyomo *
  • pyscipopt *
  • python-dotenv *
  • rasterio *
  • scikit-learn *
  • xlsxwriter *