Skip to content

Commit

Permalink
Merge pull request #30 from NREL/v0.3.3release
Browse files Browse the repository at this point in the history
V0.3.3release
  • Loading branch information
shirubana authored Mar 22, 2024
2 parents be4860f + 3247e4e commit f33b6ea
Show file tree
Hide file tree
Showing 473 changed files with 1,101,420 additions and 556,403 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ ENV/
tests/results/

# PVDEMICE temp folder
# PV_ICE/TEMP/
<<<<<<< HEAD
PV_ICE/TEMP/

# Traning Jupyter-book
training/_build/
=======
# PV_ICE/TEMP/
>>>>>>> be4860f9b4c2ce5a2b887e2d153f7cfea32b3a6c
50 changes: 50 additions & 0 deletions PV_ICE/.github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/PV-ICE
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
24 changes: 24 additions & 0 deletions PV_ICE/baselines/CarbonLayer/Ember-PVEmissionsWorld2000-2022.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
country_or_region,year,variable,emissions_mtco2
World,2000,Solar,0.05
World,2001,Solar,0.07
World,2002,Solar,0.08
World,2003,Solar,0.1
World,2004,Solar,0.13
World,2005,Solar,0.19
World,2006,Solar,0.26
World,2007,Solar,0.35
World,2008,Solar,0.56
World,2009,Solar,0.94
World,2010,Solar,1.54
World,2011,Solar,3.03
World,2012,Solar,4.61
World,2013,Solar,6.33
World,2014,Solar,9.5
World,2015,Solar,12.28
World,2016,Solar,15.74
World,2017,Solar,21.34
World,2018,Solar,27.47
World,2019,Solar,33.74
World,2020,Solar,40.65
World,2021,Solar,50.26
World,2022,Solar,62.68
Loading

0 comments on commit f33b6ea

Please sign in to comment.