Skip to main content

PRIMO - The P&A Project Optimizer

Project description

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.

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:

conda env create -f conda-env-dev.yml

Activate the new environment with:

conda activate primo

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

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.

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

primo_optimizer-0.2.0rc1.tar.gz (133.3 kB view details)

Uploaded Source

Built Distribution

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

primo_optimizer-0.2.0rc1-py3-none-any.whl (171.6 kB view details)

Uploaded Python 3

File details

Details for the file primo_optimizer-0.2.0rc1.tar.gz.

File metadata

  • Download URL: primo_optimizer-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 133.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for primo_optimizer-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 82be5189c92494770a33e184d85f5a6e307817016d1745c7c509c140083fdfb5
MD5 7d87c7d3a1d3d3a46285c0f5fd8424bb
BLAKE2b-256 6a037d44ee19a959a765545e57ab293cfd35d27acaf5b2f2a336b63a97c7208e

See more details on using hashes here.

Provenance

The following attestation bundles were made for primo_optimizer-0.2.0rc1.tar.gz:

Publisher: publish_pypi.yml on NEMRI-org/primo-optimizer

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

File details

Details for the file primo_optimizer-0.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for primo_optimizer-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 014806ffba48d5b0101efdce35e39d9126260ff500c8034fe5cee20f54a36665
MD5 18dc3325f395ec6c8a2db2c51ff2c0cd
BLAKE2b-256 99a1cacddd6c4ed9a25ab6e0e5a7611e29db889249ec7b6b3a165ee32625c552

See more details on using hashes here.

Provenance

The following attestation bundles were made for primo_optimizer-0.2.0rc1-py3-none-any.whl:

Publisher: publish_pypi.yml on NEMRI-org/primo-optimizer

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