EECO
A package for calculating electricity-related emissions and costs for optimization problem formulation and other computational analyses.
https://github.com/we3lab/eeco
Category: Consumption
Sub Category: Computation and Communication
Last synced: about 2 hours ago
JSON representation
Repository metadata
Calculate electricity-related emissions and costs
- Host: GitHub
- URL: https://github.com/we3lab/eeco
- Owner: we3lab
- License: mit
- Created: 2025-05-07T20:51:37.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-02-19T21:05:02.000Z (15 days ago)
- Last Synced: 2026-02-19T23:38:42.206Z (15 days ago)
- Language: Python
- Size: 5.41 MB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 10
- Releases: 8
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Citation: CITATION.cff
README.rst
******************************************
Electric Emissions & Cost Optimizer (EECO)
******************************************
.. image::
https://github.com/we3lab/eeco/workflows/Build%20Main/badge.svg
:height: 30
:target: https://github.com/we3lab/eeco/actions
:alt: Build Status
.. image::
https://github.com/we3lab/eeco/workflows/Documentation/badge.svg
:height: 30
:target: https://we3lab.github.io/eeco
:alt: Documentation
.. image::
https://codecov.io/gh/we3lab/eeco/branch/main/graph/badge.svg
:height: 30
:target: https://codecov.io/gh/we3lab/eeco
:alt: Code Coverage
.. image::
https://zenodo.org/badge/979642377.svg
:height: 30
:target: https://doi.org/10.5281/zenodo.17102024
:alt: Zenodo DOI
A package for calculating electricity-related emissions and costs for optimization problem formulation and other computational analyses.
Useful Commands
===============
1. ``pip install -e .`` (or ``pip install -e .[test]`` for development)
This will install your package in editable mode.
2. ``pytest eeco/tests --cov=eeco --cov-report=html``
Produces an HTML test coverage report for the entire project which can
be found at ``htmlcov/index.html``.
3. ``docs/make html``
This will generate an HTML version of the documentation which can be found
at ``_build/html/index.html``.
4. ``flake8 eeco --count --verbose --show-source --statistics``
This will lint the code and share all the style errors it finds.
5. ``black eeco``
This will reformat the code according to strict style guidelines.
Documentation
==============
The documentation for this package is hosted on `GitHub Pages `_.
Legal Documents
===============
This work was supported by the following grants and programs:
- `National Alliance for Water Innovation (NAWI) `_ (grant number UBJQH - MSM)
- `Department of Energy, the Office of Energy Efficiency and Renewable Energy, Advanced Manufacturing Office `_ (grant number DE-EE0009499)
- `California Energy Commission (CEC) `_ (grant number GFO-23-316)
- `Equitable, Affordable & Resilient Nationwide Energy System Transition (EARNEST) Consortium `_
- `Stanford University Bits & Watts Initiative `_
- `Stanford Woods Institute Realizing Environmental Innovation Program (REIP) `_
- `Stanford Woods Institute Mentoring Undergraduate in Interdisciplinary Research (MUIR) Program `_
- `Stanford University Sustainability Undergraduate Research in Geoscience and Engineering (SURGE) Program `_
The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof. Neither the United States Government nor any agency thereof, nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights.
- `LICENSE `_
- `CONTRIBUTING `_
Attribution
===========
If you found this package useful, we encourage you to cite the papers below depending on which portion of the code you use.
See the metadata in `CITATION.cff `_, on `Zenodo `_,
or the following `BibTeX` format to cite the Python package in its entirety:
.. code-block::
@software{chapin_2025_17102024,
author={Chapin, Fletcher T. and
Rao, Akshay K. and
Sakthivelu, Adhithyan and
Wettermark, Daly and
Musabandesu, Erin and
Jaminet, Anne and
Dudchenko, Alexander V. and
Mauter, Meagan S.},
title={Electric Emissions \& Cost Optimizer (EECO)},
month=sep,
year=2025,
publisher={Zenodo},
version={v0.1.0},
doi={10.5281/zenodo.17102025},
url={https://doi.org/10.5281/zenodo.17102025}
}
Citing `costs.py`
*****************
The development of `costs.py` was the culmination of two papers from the WE3Lab.
The convex formulation of tariff costs for optimizing flexible loads was originally developed for a case study of flexible wastewater treatment plant operation published in Environmental Science & Technology:
Bolorinos, J., Mauter, M. S., & Rajagopal, R. Integrated energy flexibility management at wastewater treatment facilities. *Environ. Sci. Technol.* **57**, 18362-18371. (2023). DOI: `10.1021/acs.est.3c00365 `_
In `BibTeX` format:
.. code-block::
@article{bolorinos2023integrated,
title={Integrated energy flexibility management at wastewater treatment facilities},
author={Bolorinos, Jose and Mauter, Meagan S and Rajagopal, Ram},
journal={Environmental Science \& Technology},
volume={57},
number={46},
pages={18362--18371},
year={2023},
publisher={ACS Publications},
url={https://doi.org/10.1021/acs.est.3c00365}
}
The tariff data format was published in the following data descriptor in Nature Scientific Data:
Chapin, F.T., Bolorinos, J. & Mauter, M.S. Electricity and natural gas tariffs at United States wastewater treatment plants. *Sci Data* **11**, 113 (2024). DOI: `10.1038/s41597-023-02886-6 `_
In `BibTeX` format:
.. code-block::
@Article{Chapin2024,
author={Chapin, Fletcher T and Bolorinos, Jose and Mauter, Meagan S.},
title={Electricity and natural gas tariffs at United States wastewater treatment plants},
journal={Scientific Data},
year={2024},
month={Jan},
day={23},
volume={11},
number={1},
pages={113},
issn={2052-4463},
doi={10.1038/s41597-023-02886-6},
url={https://doi.org/10.1038/s41597-023-02886-6}
}
Citing `emissions.py`
*********************
The emissions optimization code was originally developed for co-optimizing costs and emissions at a wastewater treatment plant and published in Environmental Science & Technology:
Chapin, F.T., Wettermark, D., Bolorinos, J. & Mauter, M.S. Load-shifting strategies for cost-effective emission reductions at wastewater facilities *Environ. Sci. Technol.* **59**, 2285-2294 (2025). DOI: `10.1021/acs.est.4c09773 `_
In `BibTeX` format:
.. code-block::
@article{chapin2025load,
title={Load-Shifting Strategies for Cost-Effective Emission Reductions at Wastewater Facilities},
author={Chapin, Fletcher T and Wettermark, Daly and Bolorinos, Jose and Mauter, Meagan S},
journal={Environmental Science \& Technology},
volume={59},
number={4},
pages={2285--2294},
year={2025},
publisher={ACS Publications},
url={https://pubs.acs.org/doi/10.1021/acs.est.4c09773}
}
Citing `metrics.py`
*******************
The flexibility metrics come from the following Nature Water paper:
Rao, A. K., Bolorinos, J., Musabandesu, E., Chapin, F. T., & Mauter, M. S. Valuing energy flexibility from water systems. *Nat. Water* **2**, 1028-1037 (2024). DOI: `10.1038/s44221-024-00316-4 `_
In `BibTeX` format:
.. code-block::
@article{rao2024valuing,
title={Valuing energy flexibility from water systems},
author={Rao, Akshay K and Bolorinos, Jose and Musabandesu, Erin and Chapin, Fletcher T and Mauter, Meagan S},
journal={Nature Water},
volume={2},
number={10},
pages={1028--1037},
year={2024},
publisher={Nature Publishing Group UK London},
url={https://doi.org/10.1038/s44221-024-00316-4}
}
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If this software has been useful in your research, we encourage you to cite it using the provided metadata."
authors:
- family-names: "Chapin"
given-names: "Fletcher T."
orcid: "https://orcid.org/0000-0002-2165-7963"
- family-names: "Rao"
given-names: "Akshay K."
orcid: "https://orcid.org/0000-0002-9054-476X"
- family-names: "Sakthivelu"
given-names: "Adhithyan"
orcid: "https://orcid.org/0000-0002-3826-8112"
- family-names: "Wettermark"
given-names: "Daly"
orcid: "https://orcid.org/0000-0001-7151-2765"
- family-names: "Musabandesu"
given-names: "Erin"
orcid: "https://orcid.org/0000-0001-8381-4656"
- family-names: "Jaminet"
given-names: "Anne"
- family-names: "Dudchenko"
given-names: "Alexander V."
orcid: "https://orcid.org/0000-0002-4808-6195"
- family-names: "Mauter"
given-names: "Meagan S."
orcid: "https://orcid.org/0000-0002-4932-890X"
title: "Electric Emissions & Cost Optimizer (EECO)"
version: 0.1.0
type: software
date-released: September 10, 2025
doi: 10.5281/zenodo.17042020
url: "https://github.com/we3lab/eeco"
Owner metadata
- Name: we3lab
- Login: we3lab
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/33632663?v=4
- Repositories: 4
- Last ynced at: 2023-03-02T16:26:14.494Z
- Profile URL: https://github.com/we3lab
GitHub Events
Total
- Release event: 1
- Delete event: 1
- Pull request event: 5
- Issues event: 2
- Watch event: 1
- Issue comment event: 2
- Push event: 29
- Pull request review event: 22
- Pull request review comment event: 38
- Create event: 4
Last Year
- Release event: 1
- Delete event: 1
- Pull request event: 5
- Issues event: 2
- Watch event: 1
- Issue comment event: 2
- Push event: 29
- Pull request review event: 22
- Pull request review comment event: 38
- Create event: 4
Committers metadata
Last synced: 24 days ago
Total Commits: 31
Total Committers: 6
Avg Commits per committer: 5.167
Development Distribution Score (DDS): 0.419
Commits in past year: 31
Committers in past year: 6
Avg Commits per committer in past year: 5.167
Development Distribution Score (DDS) in past year: 0.419
| Name | Commits | |
|---|---|---|
| Fletcher Chapin | f****n@g****m | 18 |
| Akshay K. Rao | r****k@s****u | 6 |
| Daly Wettermark | 1****w | 3 |
| Adhithyan Sakthivelu | a****0@g****m | 2 |
| avdudchenko | 3****o | 1 |
| annejaminet | 7****t | 1 |
Committer domains:
- stanford.edu: 1
Issue and Pull Request metadata
Last synced: 15 days ago
Total issues: 2
Total pull requests: 3
Average time to close issues: N/A
Average time to close pull requests: 6 minutes
Total issue authors: 1
Total pull request authors: 2
Average comments per issue: 0.0
Average comments per pull request: 0.33
Merged pull request: 2
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 3
Past year average time to close issues: N/A
Past year average time to close pull requests: 6 minutes
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.33
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- dalyw (2)
Top Pull Request Authors
- fletchapin (2)
- dalyw (1)
Top Issue Labels
- enhancement (2)
- needs triage (2)
Top Pull Request Labels
Package metadata
- Total packages: 1
-
Total downloads:
- pypi: 53 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 2
pypi.org: eeco
Calculate electricity-related emissions and costs.
- Homepage: https://github.com/we3lab/eeco
- Documentation: https://eeco.readthedocs.io/
- Licenses: Free for non-commercial use
- Latest release: 0.2.0 (published 3 months ago)
- Last Synced: 2026-02-18T00:06:53.944Z (17 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 53 Last month
-
Rankings:
- Dependent packages count: 8.56%
- Stargazers count: 26.774%
- Average: 28.573%
- Forks count: 30.711%
- Dependent repos count: 48.247%
- Maintainers (2)
Dependencies
- JamesIves/github-pages-deploy-action releases/v4 composite
- actions/checkout v1 composite
- actions/setup-python v1 composite
- actions/checkout v4 composite
- actions/checkout v1 composite
- actions/setup-python v1 composite
- conda-incubator/setup-miniconda v3 composite
- actions/checkout v1 composite
- actions/create-release v1 composite
- actions/setup-python v1 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v1 composite
- actions/setup-python v1 composite
- conda-incubator/setup-miniconda v3 composite
Score: 8.794824928014517