Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge develop into master for v0.5 release #308

Merged
merged 145 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from 144 commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
207cba8
refactor: retire analyze_pg and multi folder
BainanXia Mar 16, 2021
09808a1
feat: add powerflow snapshot figure
danielolsen Mar 10, 2021
ed313cf
doc: add demo script and data
danielolsen Mar 15, 2021
96ac9e4
Merge pull request #241 from Breakthrough-Energy/daniel/powerflow_sna…
danielolsen Mar 17, 2021
b16f504
docs: fix link to function in docstring (#248)
rouille Mar 24, 2021
89be318
feat: add heatmap plot (#245)
danielolsen Mar 25, 2021
81ef336
Update dependencies (#249)
jenhagg Mar 29, 2021
8081d16
ci: add pep8-naming check to flake8 (#250)
jenhagg Mar 29, 2021
7bb5fc9
feat: add capabilities of slicing time series for specific hours and …
BainanXia Mar 26, 2021
685f8b1
test: update tests for time.py
BainanXia Mar 26, 2021
58a87bb
feat: add function get_capacity_factor_time_series in capacity_value.py
BainanXia Mar 27, 2021
86ad365
test: write test for get_capacity_factor_time_series
BainanXia Mar 27, 2021
bc6a6d1
chore: rename capacity_value.py to capacity.py
BainanXia Mar 29, 2021
44ec767
fix: can not compare tz-naive and tz-aware timestamps when changing t…
BainanXia Mar 30, 2021
485e2d6
feat: add plot_scatter_capacity_vs_capacity_factor
BainanXia Mar 30, 2021
39951c1
feat: add demo notebook for scatter plot capacity vs capacity factor
BainanXia Mar 30, 2021
f1f9f7c
Merge pull request #251 from Breakthrough-Energy/bainan/scatter_capac…
BainanXia Mar 31, 2021
958ca9b
docs: fix link to function in docstrings (#254)
rouille Apr 1, 2021
705028d
feat: add function plot_scatter_capacity_vs_curtailment
BainanXia Apr 2, 2021
c2ce32e
feat: add demo notebook for scatter plot capacity vs curtailment
BainanXia Apr 2, 2021
11d85cb
Merge pull request #256 from Breakthrough-Energy/bainan/scatter_capac…
BainanXia Apr 5, 2021
ab7a736
feat: add Dockerfile to build from PowerSimData
dmuldrew Mar 23, 2021
5f78d9e
feat: add .dockerignore used in PowerSimData
dmuldrew Apr 1, 2021
05f08ae
Merge pull request #252 from Breakthrough-Energy/dmuldrew/dockerfile
dmuldrew Apr 7, 2021
ae3bae4
ci: build and push docker image (#257)
jenhagg Apr 7, 2021
519e53f
fix: install ipywidgets for tqdm progress bar (#260)
jenhagg Apr 8, 2021
55f1f71
feat: add plot_scatter_capacity_vs_cost_curve_slope
BainanXia Apr 9, 2021
37a1909
feat: add demo notebook for scatter plot capacity vs cost curve slope
BainanXia Apr 9, 2021
22a3094
Merge pull request #261 from Breakthrough-Energy/bainan/scatter_cost_…
BainanXia Apr 14, 2021
6066da6
feat: add function plot_bar_generation_stack
BainanXia Apr 14, 2021
b091100
test: write tests for input validations of generation stack bar plot
BainanXia Apr 14, 2021
78fb038
feat: add demo notebook for plot_bar_generation_stack
BainanXia Apr 14, 2021
00902c2
Merge pull request #262 from Breakthrough-Energy/bainan/bar_generatio…
BainanXia Apr 19, 2021
999adf3
refactor: move cost calculation function to separate module
danielolsen Apr 22, 2021
26cde42
test: add tests for costs module
danielolsen Apr 22, 2021
aca9956
Merge pull request #269 from Breakthrough-Energy/daniel/costs_module
danielolsen Apr 22, 2021
cbaccad
chore: change file permission (#268)
rouille Apr 22, 2021
8a7a05b
chore: add data CSVs to package_data (#270)
danielolsen Apr 26, 2021
64ada55
chore: remove seaborn from requirements (#272)
danielolsen Apr 26, 2021
6e6ef13
feat: improve flexibility of utilization, risk, and bind maps (#266)
danielolsen Apr 27, 2021
85b80d9
refactor: add flexibility to plot_upgrades_map (#271)
danielolsen Apr 27, 2021
761aba6
ci: add workflow_dispatch trigger to docker build (#274)
jenhagg Apr 28, 2021
bec0ecc
chore: create bug report issue template (#273)
rouille Apr 28, 2021
61b450c
fix: change index name when time zone is changed
BainanXia Apr 28, 2021
723aa8e
fix: use index to reference x axis instead of index values
BainanXia Apr 28, 2021
96a10c3
Merge pull request #276 from Breakthrough-Energy/bainan/generation_st…
BainanXia Apr 28, 2021
2df5efe
docs, refactor: improve docstrings, rename variables, fix deprecation…
rouille Apr 6, 2021
3566f86
refactor: add tooltip label name as argument in plot_states function
rouille Apr 9, 2021
8583180
fix: handle optional parameters in PF snapshot map
rouille Apr 9, 2021
97f7e16
refactor: redesign interconnection map
rouille Apr 9, 2021
cc2c13f
refactor: redesign LMP map
rouille Apr 12, 2021
cf3dc5d
refactor: redesign carbon map
rouille Apr 13, 2021
70d0347
refctor: redesign carbon bar
rouille Apr 14, 2021
6f6c86a
docs: write analysis usage
rouille Apr 6, 2021
c1af21e
docs: write plot usage
rouille Apr 6, 2021
3f97fed
docs: create index
rouille Apr 6, 2021
88252c1
feat: add tutorial notebook
rouille Apr 16, 2021
a268c18
docs: rewrite README
rouille Apr 16, 2021
3c6f9f6
refactor: update notebooks
rouille Apr 6, 2021
be28905
Merge pull request #265 from Breakthrough-Energy/ben/readme
rouille Apr 29, 2021
b4f13a8
ci: add coverage report to pytest (#278)
jenhagg Apr 30, 2021
0ce0874
docs: add scatter plot of capacity vs capacity factor to tutorial
rouille May 5, 2021
b317fe9
chore: update tutorial notebook
rouille May 5, 2021
0327751
Merge pull request #283 from Breakthrough-Energy/ben/tutorial
rouille May 6, 2021
b3ef232
chore: create feature request issue template (#284)
rouille May 6, 2021
64856bc
style: format title
rouille May 6, 2021
faedd28
docs: add scatter plot of capacity vs cost curve slope to tutorial
rouille May 6, 2021
edcc36d
fix: use anonymous reference to avoid duplicate warnings
rouille May 6, 2021
608709e
chore: update tutorial notebook
rouille May 6, 2021
7999b14
Merge pull request #286 from Breakthrough-Energy/ben/tutorial
rouille May 7, 2021
d2576fd
docs: add scatter plot of capacity vs curtailment to tutorial
rouille May 8, 2021
8d32ef9
chore: update tutorial notebook
rouille May 8, 2021
1566f31
docs: move plot to different section
rouille May 8, 2021
a42697f
style: format import statements
rouille May 10, 2021
fef586e
Merge pull request #288 from Breakthrough-Energy/ben/tutorial
rouille May 10, 2021
6a00872
fix: update **kwargs as intended
rouille May 10, 2021
2cd2fe0
chore: update utilization map demo notebook
rouille May 10, 2021
149b20c
docs: add utilization map to tutorial
rouille May 11, 2021
bb22108
chore: update tutorial notebook
rouille May 11, 2021
d15f32f
Merge pull request #291 from Breakthrough-Energy/ben/tutorial
rouille May 11, 2021
aa8b905
feat: add function plot_bar_generation_max_min_actual
BainanXia May 11, 2021
a08b2a0
feat: add demo notebook for plot_bar_generation_max_min_actual
BainanXia May 11, 2021
7bc16a7
Merge pull request #292 from Breakthrough-Energy/bainan/gen_max_min_bar
BainanXia May 12, 2021
88a464c
chore: rename module
rouille May 11, 2021
e1e733e
chore: rename functions
rouille May 11, 2021
8393199
fix: update **kwargs as intended
rouille May 11, 2021
f2ec8ab
chore: add demo notebook
rouille May 12, 2021
27d41df
Merge pull request #294 from Breakthrough-Energy/ben/rename
rouille May 12, 2021
7a01eaa
feat: add function plot_bar_renewable_max_profile_actual
BainanXia May 13, 2021
d669ab9
feat: add demo notebook for plot_bar_renewable_max_profile_actual
BainanXia May 13, 2021
86db80c
Merge pull request #295 from Breakthrough-Energy/bainan/renewable_max…
BainanXia May 13, 2021
eb1a714
style: add logo and badges to README (#296)
rouille May 14, 2021
20f050c
Update dependencies (#297)
jenhagg May 14, 2021
ac7a59b
fix: correct bug where get_dcline_differences fails for DC lines conn…
danielolsen May 22, 2021
25200a2
refactor: move code snippets to files
May 28, 2021
a9da443
chore: run flake8 on code snippets
May 28, 2021
f428f3d
Merge pull request #302 from Breakthrough-Energy/jon/plots
jenhagg May 28, 2021
5331011
refactor: improve the flexibility of the transmission upgrades map (#…
danielolsen Jun 1, 2021
a76bc74
Update dependencies (#303)
jenhagg Jun 3, 2021
6c5466b
chore: rename plot_renewable_capacity_map to plot_capacity_map
danielolsen May 21, 2021
f4349e2
refactor: rewrite map_plant_capacity function for flexibility
danielolsen May 21, 2021
81b8c64
doc: add demo script for capacity map
danielolsen Jun 2, 2021
0597991
chore: remove old renewable_capacity_map_demo notebook
danielolsen Jun 2, 2021
066561d
doc: update reference to demo within plot_capacity_map.py
danielolsen Jun 2, 2021
88c8557
Merge pull request #300 from Breakthrough-Energy/daniel/refactor_capa…
danielolsen Jun 3, 2021
5f8aa28
feat: write function creating canvas for maps
rouille Jun 4, 2021
639702f
feat: write function ensuring validity of keyword arguments
rouille Jun 14, 2021
1bbe206
test: write test for check functions
rouille Jun 14, 2021
91aefb4
refactor: break plot_states function into layers
rouille Jun 8, 2021
a3afcc7
refator: update state goals map notebook
rouille Jun 8, 2021
f64f8e7
refactor: use state borders layer in capacity map
rouille Jun 9, 2021
5198fac
refactor: use state borders layer in utilization map
rouille Jun 9, 2021
38a3054
refactor: use state borders layer in lmp map
rouille Jun 9, 2021
3b7daf1
refactor: use state borders layer in transmission upgrades map
rouille Jun 10, 2021
9a3b18d
refactor: use state borders and tooltips layers in interconnection map
rouille Jun 10, 2021
6fc74c6
refactor: use state borders layer in emission maps
rouille Jun 10, 2021
e6931fe
refactor: use state borders layer in PF snapshot map
rouille Jun 10, 2021
3658ec4
refactor: update tutorial notebook
rouille Jun 9, 2021
6f46f6e
Merge pull request #306 from Breakthrough-Energy/ben/canvas
rouille Jun 17, 2021
99c299e
chore: add compose file and notebook to simplify running code snippets
Jun 2, 2021
af58b51
chore: add bokeh plots to notebook
Jun 11, 2021
67cacf6
docs: add readme to document process of generating plots
Jun 11, 2021
147c1de
Merge pull request #307 from Breakthrough-Energy/jon/plots
jenhagg Jun 21, 2021
d94b69b
Update dependencies (#311)
jenhagg Jun 25, 2021
4701baa
Upload coverage report (#312)
jenhagg Jun 25, 2021
588ceee
chore: fix yaml and add badge (#313)
jenhagg Jun 25, 2021
0552975
refactor: replace function definitions with imports from powersimdata
danielolsen Jun 23, 2021
e5939da
refactor: remove helpers and test_helpers modules
danielolsen Jun 29, 2021
7daec91
refactor: update references to postreise.analyze.helpers
danielolsen Jun 29, 2021
357dc1f
chore: remove check module
danielolsen Jun 29, 2021
d49269c
refactor: update references to postreise.analyze.check
danielolsen Jun 29, 2021
4ebc723
Merge pull request #310 from Breakthrough-Energy/daniel/import_from_p…
danielolsen Jun 30, 2021
43c30dd
docs: clarify PowerSimData dependency (#314)
rouille Jul 1, 2021
778fddf
chore: remove __all__ from __init__ file
rouille Jul 2, 2021
aa39ac0
fix: update import statements
rouille Jul 2, 2021
25f11a5
Merge pull request #315 from Breakthrough-Energy/ben/import
rouille Jul 2, 2021
23c30d3
Update dependencies (#316)
jenhagg Jul 19, 2021
624e97d
chore: use powersimdata from PyPI
Aug 18, 2021
2a95ac7
chore: use setup.cfg
Aug 22, 2021
4009a02
ci: add release workflow
Aug 22, 2021
1d41b89
chore: remove docker build
Aug 23, 2021
7b7a197
ci: combine workflow triggers
Sep 1, 2021
47edfc2
chore: regenerate Pipfile.lock
Sep 1, 2021
bc7cf47
Merge pull request #317 from Breakthrough-Energy/jon/pypi
jenhagg Sep 1, 2021
4753155
chore: bump version number to v0.5.0 (#309)
danielolsen Sep 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True
omit =
**/test_*.py
**/__init__.py

9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.github
build
.pytest_cache
.tox
*.egg-info
**/__pycache__
.ipynb_checkpoints
**/.ropeproject
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Bug report
about: Create a report to help us improve
title: Bug report
labels: bug
assignees: ahurli, BainanXia, danielolsen, jon-hagg, rouille

---

# :beetle:

- [ ] I have checked that this issue has not already been reported.


### Bug summary
A short 1-2 sentences that succinctly describes the bug.

### Code for reproduction
A minimum code snippet required to reproduce the bug. Please make sure to minimize the
number of dependencies required.
```python
# Paste your code here
#
#
```

### Actual outcome
The output produced by the above code, which may be a screenshot, console output, etc.
```shell
# If applicable, paste the console output here
#
#
```

### Expected outcome
A description of the expected outcome from the code snippet.

### Environment
Please specify your platform and versions of the relevant libraries you are using:
* Operating system:
* PostREISE revision (run `git rev-parse origin/HEAD`):
* Python version:
* Jupyter version (if applicable):
* Other libraries:

### Additional context
Add any other context about the problem here.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Feature request
about: Suggest an idea for this project
title: Feature request
labels: feature request
assignees: ahurli, BainanXia, danielolsen, jon-hagg, rouille

---

# :rocket:

- [ ] Is your feature request essential for your project?


### Describe the workflow you want to enable
A clear and concise description of what can be enhanced, e.g., "I wish I could do [...]"

### Describe your proposed implementation
This should provide a description of the feature request, e.g.:
* "The class `Foo` should have a new method `bar` that allows to [...]"
* "Function `foo` needs a new arguments `bar` to set [...]"
* "Create a new function `foo` to calculate [...]"

If applicable, try to write a docstring for the desired feature. To illustrate, if you would like to add a new function in a module, provide:
* the name of the function
* a description of the task accomplished by the function
* a list of the input and output parameters together with their types (e.g., `int`,
`str`, `pandas.DataFrame`, etc.) and a short description of its/their meaning

### Describe alternatives you've considered, if relevant
This should provide a description of any alternative solutions or features you've
considered.

### Additional context
Add any other context or screenshots in this section, e.g., a plot from an article you
believe would clearly communicate results.
41 changes: 41 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Code coverage

on:
push:
branches:
- 'develop'

jobs:
coverage:
runs-on: ubuntu-latest

name: Generate coverage report
steps:
- name: Checkout PostREISE
uses: actions/checkout@v2
with:
path: PostREISE

- name: Checkout PowerSimData
uses: actions/checkout@v2
with:
repository: Breakthrough-Energy/PowerSimData
path: PowerSimData

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- run: python -m pip install --upgrade pip tox
working-directory: PostREISE

- run: tox -e pytest -- --cov-report=xml
working-directory: PostREISE

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: codecov-postreise
fail_ci_if_error: true
directory: PostREISE
14 changes: 0 additions & 14 deletions .github/workflows/docs-trigger.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/external.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Trigger external workflows

on:
push:
branches:
- develop

jobs:
run-workflows:
runs-on: ubuntu-latest
steps:
- name: Build and publish docs website
uses: Breakthrough-Energy/actions/workflow-trigger@main
with:
repo: docs
branch: master
workflow_id: 2386877
token: ${{ secrets.CI_TOKEN_CLONE_REPO }}

- name: Build and publish docker image
uses: Breakthrough-Energy/actions/workflow-trigger@main
with:
repo: plug
workflow_id: 12413223
token: ${{ secrets.CI_TOKEN_CLONE_REPO }}
1 change: 1 addition & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
token: ${{ secrets.CI_TOKEN_CLONE_REPO }}
commit-message: Update dependencies
title: Update dependencies
labels: dependencies
body: |
### Summary of changes

Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Python 🐍 package 📦 to PyPI and TestPyPI
on:
workflow_dispatch:
push:
tags:
- v*.*.*

jobs:
release:
name: Publish python package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade build
- run: python -m build

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]

Expand Down
6 changes: 4 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ matplotlib = "~=3.3"
numpy = "~=1.20"
pandas = "~=1.2"
pyproj = "==2.6.1.post1"
pytest = "==5.4.3"
seaborn = "==0.10.1"
powersimdata = {editable = true, path = "../PowerSimData"}
powersimdata = "~=0.4.3"

[dev-packages]
black = "*"
pytest = "*"
coverage = "*"
pytest-cov = "*"
Loading