Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
881 commits
Select commit Hold shift + click to select a range
884d50f
ci: fix a warning and ignore different one
Nov 3, 2020
1fedeb3
Merge pull request #326 from Breakthrough-Energy/jon/flake8
jenhagg Nov 3, 2020
8f6ab7c
docs: improve README
rouille Oct 31, 2020
95bbeb8
feat: define DataAccess class and SSHDataAccess subclass
danielolsen Nov 11, 2020
43bad01
refactor: use new SSHDataAccess object in Scenario framework
danielolsen Nov 11, 2020
98ff1da
refactor: substitute SSHDataAccess for SSH connection in tests
danielolsen Nov 12, 2020
679094c
refactor: use data access object instead of ssh client for CSVs (#331)
jenhagg Nov 12, 2020
4c2fdbe
Merge pull request #330 from Breakthrough-Energy/daniel/abstract_ssh
danielolsen Nov 13, 2020
bdc4256
feat: allow user to specify gencost scaling in change table
danielolsen Oct 23, 2020
d7d9ab4
feat: parse gencost scaling in TransformGrid
danielolsen Oct 23, 2020
9cf3d94
test: add gencost scaling tests for TransformGrid
danielolsen Oct 26, 2020
c2da201
Merge pull request #322 from Breakthrough-Energy/daniel/scale_gencost
danielolsen Nov 13, 2020
cb4858c
feat: enable configuring server user with environment variable
Sep 28, 2020
ed2c17c
chore: dockerize package
Sep 29, 2020
c98cf07
chore: add compose file to enable loading data from server
Sep 29, 2020
62b8d04
fix: install powersimdata
Nov 10, 2020
fae3801
Merge pull request #308 from Breakthrough-Energy/jon/docker
jenhagg Nov 13, 2020
02ba49a
docs: add terms and conditions to ATTRIBUTION file
rouille Nov 10, 2020
ae708e9
docs: add general purpose
rouille Nov 13, 2020
fe7afdf
Merge pull request #329 from Breakthrough-Energy/ben/attribution
rouille Nov 14, 2020
42e1f22
feat: add ChangeTable method to scale generator Pmins
danielolsen Nov 6, 2020
4794c50
feat: add ChangeTable-specificed Pmin scaling to TransformGrid
danielolsen Nov 6, 2020
620eded
test: add tests for scaling generator Pmins, including clipping
danielolsen Nov 6, 2020
c6f55ff
fix: raise error properly if zone and plant not set
danielolsen Nov 16, 2020
c17c9b9
doc: improve docstring for ChangeTable._add_plant_entries()
danielolsen Nov 16, 2020
9811a03
Merge pull request #333 from Breakthrough-Energy/daniel/scale_pmin
danielolsen Nov 17, 2020
fce1e6e
test: use fixture for change table and remove try/finally
Nov 17, 2020
26e6367
refactor: use ct fixture in change table tests
Nov 17, 2020
174fbea
Merge pull request #335 from Breakthrough-Energy/jon/ct-fixture
jenhagg Nov 17, 2020
9a382a0
fix: scenario state cannot load data (#338)
merrielle Nov 18, 2020
0c166b3
feat: add mapping from load zone ID to time zone
lanesmith Nov 18, 2020
021cb90
refactor: move data to zone.csv
lanesmith Nov 19, 2020
10170c6
Merge pull request #339 from Breakthrough-Energy/lane/timezones
lanesmith Nov 19, 2020
1b67c05
feat: lazy ssh connection
Nov 13, 2020
9b875e7
feat: rate limit connection attempts
Nov 14, 2020
1fdd22c
Merge pull request #334 from Breakthrough-Energy/jon/lazy
jenhagg Nov 19, 2020
3f13ffc
chore: remove tutorial notebook
rouille Oct 29, 2020
9672e00
docs: improve scenario and grid cheat sheet notebook
rouille Oct 30, 2020
8933e23
chore: remove branch_device_type notebook
rouille Oct 30, 2020
bc7da40
Merge pull request #327 from Breakthrough-Energy/ben/notebook
rouille Nov 30, 2020
29fb7b9
docs: update link to base profiles in README
rouille Dec 1, 2020
1e4c848
Improve clearing of Change Table entries (#348)
danielolsen Dec 4, 2020
b4b6b77
chore: create data intake issue template
rouille Dec 4, 2020
77d363a
chore: add MIT license
rouille Dec 7, 2020
30896f0
refactor: mirror server structure locally
Nov 19, 2020
8a3c035
refactor: remove data_access param from OutputData
Nov 20, 2020
d167a93
refactor: makedirs in one line
Nov 20, 2020
d3293bc
refactor: move scenario/execute list constants around
Nov 20, 2020
bf725db
refactor: add wrappers for cp and rm commands
Nov 20, 2020
08f9e0c
refactor: minor simplification of path joins
Nov 21, 2020
4540a59
refactor: use relative path in copy_to and handle cleanup
Nov 21, 2020
8e758f5
refactor: use proper path joins and simplify _read_data
Nov 23, 2020
aacddbb
test: factor out commands and add tests
Nov 24, 2020
c28b5b1
refactor: move existence check to base class
Nov 24, 2020
2c657ab
test: move tests around
Nov 24, 2020
b7c8417
test: add unit tests for copy_from
Dec 1, 2020
ba5fac7
test: add unit tests for copy_to
Dec 1, 2020
053e999
test: ensure filename is not a full path
Dec 1, 2020
5ccc396
chore: add docstrings and remove wip test markers
Dec 1, 2020
6131b79
chore: remove unused data_access parameter
Dec 7, 2020
d3bb11d
refactor: create stub factory to maintain abstraction
Dec 8, 2020
3b4d620
test: skip tests using posixpath on windows
Dec 9, 2020
b693de0
chore: default to_dir and cleanup tests
Dec 9, 2020
86827c1
Merge pull request #340 from Breakthrough-Energy/jon/tree
jenhagg Dec 9, 2020
c9a56a0
feat: add ability to add bus to ChangeTable
danielolsen Dec 2, 2020
1f28f5a
feat: interpret 'new_bus' in TransformGrid
danielolsen Dec 4, 2020
f4ccbba
test: add tests for new bus addition (ChangeTable/TransformGrid)
danielolsen Dec 4, 2020
8610756
refactor: check for new buses in grid when adding new elements, with …
danielolsen Dec 4, 2020
4b0e1e0
test: add test for adding elements at new buses
danielolsen Dec 4, 2020
7c60fbe
fix: use TransformProfile when we add new plants, even without scaling
danielolsen Dec 7, 2020
bedb4c7
Merge pull request #352 from Breakthrough-Energy/daniel/new_bus
danielolsen Dec 9, 2020
c9d7de2
docs: use more recent scenario in example
rouille Dec 14, 2020
bdb7dab
fix: use State constructor to set path_config
Dec 15, 2020
981cb34
fix: delete local data from correct locations
Dec 15, 2020
6905343
chore: remove redundant constructors
Dec 15, 2020
29c15d5
Merge pull request #359 from Breakthrough-Energy/jon/delete
jenhagg Dec 15, 2020
1d9e05e
refactor: server address/port environment variables
dmuldrew Dec 11, 2020
cd3deeb
feat: auto add host keys connection policy
dmuldrew Dec 11, 2020
c0288e9
Merge pull request #356 from Breakthrough-Energy/dmuldrew/paramiko_up…
dmuldrew Dec 15, 2020
41fb92c
refactor: use Docker CMD for easier overrides
dmuldrew Dec 15, 2020
35c9141
Merge pull request #360 from Breakthrough-Energy/docker_CMD
dmuldrew Dec 15, 2020
cd3fef7
feat: allow user to specify separate Pmin/Pmax for new dclines
danielolsen Dec 4, 2020
c8c2840
test: add new tests for different Pmin/Pmax lines
danielolsen Dec 4, 2020
d30b984
refactor: add _check_new_entry for keys when adding elements
danielolsen Dec 9, 2020
1ed6ed2
refactor: improve checking of new storage capacity
danielolsen Dec 16, 2020
f4a9f5b
Merge pull request #355 from Breakthrough-Energy/daniel/one_way_dcline
danielolsen Dec 16, 2020
4ea408c
Change flock command argument (#358)
dmuldrew Dec 18, 2020
52607ea
fix: correct type of new bus index in Grid.bus2sub (#361)
danielolsen Dec 19, 2020
d01af54
Fix MATReader when loading one Storage and/or zero DC-lines (#363)
danielolsen Dec 21, 2020
f13b3dc
fix: remove check for unused storage subkeys in grid equality
danielolsen Dec 19, 2020
2ca02e0
fix: add clearer printing for grid equality failure
danielolsen Dec 19, 2020
64b2ad1
refactor: streamline branching in storage comparison
danielolsen Dec 21, 2020
e17454e
Merge pull request #362 from Breakthrough-Energy/daniel/grid_equality…
danielolsen Dec 21, 2020
a0a20e8
update color and label dictionaries to include default values for cur…
BainanXia Jan 6, 2021
f8592dc
refactor: simplify query to get scenario status
Dec 17, 2020
16a8ee7
refactor: move more query logic to data_access layer
Dec 23, 2020
dd79c5d
fix: preserve behavior for missing scenario
Dec 23, 2020
f80b92a
chore: indent docstring
Dec 24, 2020
79383c9
chore: mutually exclusive if/else, print duplicates for ease of use
Jan 5, 2021
6149e15
chore: drop id col and reset when needed
Jan 5, 2021
8e15daa
chore: minimize try block
Jan 6, 2021
1296401
Merge pull request #365 from Breakthrough-Energy/jon/pd_index
jenhagg Jan 6, 2021
e221ce7
chore: move data access classes to expected location
Jan 6, 2021
e303982
chore: empty init files
Jan 6, 2021
b971907
chore: move ssh tests to new package
Jan 7, 2021
53fc995
docs: add docstring for context
Jan 7, 2021
97b9d8a
Merge pull request #367 from Breakthrough-Energy/jon/data_access
jenhagg Jan 7, 2021
e49d605
chore: rename variable and abstract local dir
Jan 7, 2021
29200fa
chore: add requests dependency
Jan 7, 2021
668e1f1
chore: validate status before launch
Jan 7, 2021
64884ea
feat: add code path for launching simulation over http
Jan 8, 2021
80fb5b4
refactor: abstract the env var and undo local dir changes for now
Jan 9, 2021
af52102
chore: update dockerignore and minor fixes
Jan 12, 2021
3577cc7
chore: cleanup docstrings, reuse validation
Jan 12, 2021
441401d
chore: relax pandas version and update lock file, remove 3.6 from tes…
Jan 13, 2021
8965b28
chore: more precise wording in print statement
Jan 13, 2021
7fea164
docs: docstring fixes in data_access module
Jan 14, 2021
358d5e5
Merge pull request #369 from Breakthrough-Energy/jon/client
jenhagg Jan 15, 2021
b7148c4
fix: add requests to setup.py (#370)
jenhagg Jan 15, 2021
17782b9
fix: get newer pipenv and fix installation in docker (#371)
jenhagg Jan 15, 2021
8c69c76
doc: fix docstring reference to new DataAccess location (#372)
danielolsen Jan 20, 2021
895fe1e
feat: add method to retrieve scenario table
rouille Jan 20, 2021
c595d1d
test: remove index column from test assertion (#374)
jenhagg Jan 21, 2021
6c54a24
feat: add investment cost calculations
nina-vincent Sep 15, 2020
c25bd2f
data: add cost data csv's
nina-vincent Sep 16, 2020
0aa8fcd
feat: add functions to create original ReEDS/NEEM region mapping
nina-vincent Sep 17, 2020
db0a078
feat: add transmission regional multipliers
nina-vincent Sep 17, 2020
3b31efa
doc: add function documentation to all functions
nina-vincent Sep 17, 2020
2d2d85a
data: add original ReEDS region mapping file
nina-vincent Sep 17, 2020
9891125
style: format to black, and update function names to lowercase
nina-vincent Sep 18, 2020
b0df85f
docs: add README
nina-vincent Sep 19, 2020
2536d69
refactor: move data from small CSVs to const.py
danielolsen Sep 21, 2020
a3c1b4a
refactor: move filepaths to const.py
danielolsen Sep 21, 2020
1f61219
chore: rename 'Data' folder to 'data'
danielolsen Sep 21, 2020
d884ade
refactor: simplify _calculate_dc_inv_costs
danielolsen Sep 22, 2020
18fd824
refactor: change tests to not need to map buses to regions
danielolsen Sep 22, 2020
a7e6698
refactor: move more constants to const.py
danielolsen Sep 23, 2020
6e22b95
refactor: improve performance of sjoin nearest, avoiding loops
danielolsen Sep 22, 2020
90fc43b
chore/doc: wrap long docstrings to reasonable length
danielolsen Sep 25, 2020
86982bc
refactor: change investment tests, unittest -> pytest
danielolsen Sep 25, 2020
cbf4f40
test: add test for generator investment cost
danielolsen Sep 25, 2020
50a5e46
feat: allow storage in mock grid
danielolsen Sep 25, 2020
5369809
feat: calculate storage costs with other generators
danielolsen Sep 25, 2020
b6f15a7
test: add test for calculation of storage inv cost
danielolsen Sep 25, 2020
dd2e27f
chore: update setup.py
danielolsen Sep 25, 2020
71283dd
refactor: map plants to ReEDS regions by bus, use CSV when available
danielolsen Oct 3, 2020
241aa6d
chore: add buses_ReEDS_region.csv
danielolsen Oct 3, 2020
96ea4ca
refactor: only import optional dependencies when needed
danielolsen Oct 3, 2020
0eb478a
chore: move optional requirements to separate file
danielolsen Oct 3, 2020
e0e5d8f
refactor: remove unused year params
danielolsen Oct 3, 2020
01552e9
refactor: remove crs param, hardcode instead
danielolsen Oct 7, 2020
fc701ce
refactor: remove lsuffix and rsuffix from sjoin_nearest params
danielolsen Oct 7, 2020
bb1be1d
doc: reformat the docstring for _calculate_gen_inv_costs
danielolsen Oct 7, 2020
39f2930
doc: shorten docstring for load_cost
danielolsen Oct 7, 2020
07024d1
refactor: calculate HVDC converter station costs per MW (both ends)
danielolsen Oct 9, 2020
0454fcc
feat: add inflation calculator function
danielolsen Oct 9, 2020
96c4afe
feat: account for inflation in cost calcs (AC, DC, gen)
danielolsen Oct 16, 2020
0703860
test: update tests to include inflation
danielolsen Oct 16, 2020
ed74d7f
data: add transformer cost data file
danielolsen Oct 13, 2020
6640904
refactor: use per-MW cost of closest-voltage transformer
danielolsen Oct 14, 2020
8987135
refactor: simplify bus region lookup block
danielolsen Oct 15, 2020
213420d
feat: add lookup for transformer cost multiplier by kV/region
danielolsen Oct 15, 2020
42ef67e
refactor: sort index of bus_to_neem
danielolsen Nov 3, 2020
949e7a5
refactor: remove unused auto-dropping of dataframe indices
danielolsen Nov 3, 2020
35f404a
feat: add function to build bus to reeds region mapping
danielolsen Nov 3, 2020
f9864aa
feat: add auto-build for bus-to-neem-region mapping
danielolsen Nov 3, 2020
7a9119c
doc: add attribution for investment costs
danielolsen Dec 15, 2020
7c33bdd
feat: allow user to get non-summed inv costs (ac, dc, gen)
danielolsen Jan 11, 2021
8631000
feat: add exclude_branches to calculate_ac_inv_costs
danielolsen Jan 11, 2021
fb0210c
refactor: replace custom make_dir func with os.makedirs calls
danielolsen Jan 22, 2021
2cc987b
Merge pull request #297 from Breakthrough-Energy/nina/investment_costs
danielolsen Jan 23, 2021
12e1dcc
fix: update scenario status before launching scenario (#377)
rouille Jan 25, 2021
1bb4894
feat: subclass DataAccess for shared docker volume arch
Jan 22, 2021
b004e0d
chore: docker build cleanup
Jan 22, 2021
3355cd2
fix: make output compatible with paramiko
Jan 22, 2021
07cc6f3
fix: update status before launch, mkdir more reliably
Jan 22, 2021
cbbd962
chore: copy_to -> move_to, and minor updates
Jan 25, 2021
37a1915
fix: move_to behavior and refactor to auto create folders
Jan 26, 2021
0f3832f
Merge pull request #376 from Breakthrough-Energy/jon/local_data
jenhagg Jan 27, 2021
6aa3cf2
fix: change caught Exception for get_load_shed (#375)
danielolsen Jan 27, 2021
a84b126
fix: set keyword value to avoid default value change in future pandas…
rouille Jan 28, 2021
c7967eb
feat: add storage_pg entry to MockAnalyze
BainanXia Jan 28, 2021
94793ee
fix: correct bug with repeated substation in TransformGrid._add_bus (…
danielolsen Jan 29, 2021
77d963f
doc: update investment cost README for current calculations (#385)
danielolsen Jan 29, 2021
b8d1445
feat: add method to check progress of ongoing simulation (#387)
jenhagg Feb 2, 2021
3d30e0e
refactor: add storage defaults to usa_tamu constants
danielolsen Jan 28, 2021
a37d8be
chore: remove unnecessary __all__ in __init__
danielolsen Jan 28, 2021
041b1ad
chore: update abstract_grid with new storage parameters
danielolsen Jan 28, 2021
8430d3d
refactor: populate ignored storage subkeys automatically in grid equa…
danielolsen Jan 28, 2021
f3252e0
feat: add more new storage parameter specifications to ChangeTable
danielolsen Jan 28, 2021
90d0a43
feat: interpret new storage change table parameters in TransformGrid
danielolsen Jan 28, 2021
48a94d7
test: update tests for new change table storage format
danielolsen Jan 28, 2021
8ab8e84
fix: use max id for storage id, not plant shape
danielolsen Jan 29, 2021
fd7596c
fix: ensure that storage table int columns remain int
danielolsen Jan 29, 2021
5682255
Merge pull request #383 from Breakthrough-Energy/daniel/storage_params
danielolsen Feb 3, 2021
fb4cf0f
refactor: remove redundant function for getting bus demand (#388)
danielolsen Feb 5, 2021
1a8827b
ci: use black profile for isort (#389)
jenhagg Feb 5, 2021
a9b6f26
feat: add with syntax to PrintManager (#390)
danielolsen Feb 8, 2021
08b4f04
fix: calculate investment cost for nuclear generators (#391)
danielolsen Feb 9, 2021
07bd5f1
chore: update license year
rouille Feb 9, 2021
e36133f
docs: add link to installation and contribution guide
Feb 12, 2021
5879e3c
data: set Pmin for solar and wind gens to 0 (#394)
danielolsen Feb 12, 2021
bbfc621
chore: update email in datapackage.json (#396)
danielolsen Feb 12, 2021
43084d6
chore: update package version number
Feb 12, 2021
5cc57d9
chore: bump cryptography from 3.3.1 to 3.3.2 (#393)
dependabot[bot] Feb 17, 2021
02e9eb2
chore: update link in PR template (#399)
rouille Feb 17, 2021
3c6271d
chore: update scipy and numpy (#400)
jenhagg Feb 18, 2021
4fbdc9b
ci: use pre defined action to trigger workflow (#402)
jenhagg Feb 19, 2021
737d386
feat: add function to calculate temporal mismatch curtailment
danielolsen Feb 19, 2021
fa7a631
test: add tests for temporal curtailment
danielolsen Feb 24, 2021
a5b976d
Merge pull request #401 from Breakthrough-Energy/daniel/temporal_curt…
danielolsen Feb 25, 2021
3a19391
feat: add optional solver parameter to launch_simulation
Feb 18, 2021
2310938
chore: validate solver and factor out checks
Feb 23, 2021
9f3b867
docs: move docstrings for exceptions
Feb 24, 2021
94c7b1a
Merge pull request #404 from Breakthrough-Energy/jon/solver
jenhagg Feb 25, 2021
98dce15
fix: correct bug with carried-over gencosts for new plants (#407)
danielolsen Feb 25, 2021
d7c6f33
refactor: move generation of matfile to separate function (#406)
danielolsen Feb 26, 2021
032c695
feat: use grid model to fetch profiles
rouille Jan 26, 2021
6f6f6e2
feat: add dict mapping interconnect to zone id
rouille Jan 26, 2021
ec9498c
refactor: transform normalized and full grid profile
rouille Jan 28, 2021
f7993e4
refactor: modify tests to use normalized profile for the full grid
rouille Jan 28, 2021
65324e5
refactor: cache data read by InputData (#386)
danielolsen Feb 1, 2021
1aab7f5
Merge pull request #382 from Breakthrough-Energy/ben/profile
rouille Feb 3, 2021
ae5574e
feat: access available profile in InputData class (#392)
rouille Feb 10, 2021
24935fe
chore: empty init file
rouille Feb 12, 2021
5501580
chore: rename module and change import statements
rouille Feb 12, 2021
60e0dc4
chore: override standard dir search on usa_tamu constants modules
rouille Feb 12, 2021
23e8678
refactor: change calling of area_to_loadzone function
rouille Feb 13, 2021
d1c0cab
feat: write interconnect_to_name function
rouille Feb 16, 2021
bdc22b5
feat: write ModelImmutables class
rouille Feb 13, 2021
d1e09d0
refactor: use grid model to create scenario
rouille Feb 16, 2021
1a2b19d
refactor: change calling of get_profile_version method of InputData c…
rouille Feb 16, 2021
c97a719
refactor: access grid dependent profiles in SimulationInput class
rouille Feb 16, 2021
500aa07
refactor: use grid model to instantiate Grid class in Execute class
rouille Mar 1, 2021
b952fec
refactor: access grid dependent profiles in BackupDisk class
rouille Feb 16, 2021
519ecdd
chore: remove unused module
rouille Feb 16, 2021
2fa6c6c
chore: move grid dependent tests
rouille Feb 16, 2021
f381e71
feat: add get_grid_model method to Grid class
danielolsen Feb 20, 2021
7521c77
refactor: generalize area_to_loadzone function
danielolsen Feb 19, 2021
14b0af8
refactor: update calls to area_to_loadzone function
danielolsen Feb 19, 2021
46f9788
refactor: move check on interconnect
rouille Feb 23, 2021
12fb0a7
feat: add instance of ModelImmutables class to Grid class
rouille Feb 23, 2021
32c6b57
docs: use correct bus number in code snippet of README
rouille Feb 23, 2021
0980785
refactor: switch grid_model key position in scenario info ordered dict
rouille Feb 24, 2021
1f2ed01
Merge pull request #398 from Breakthrough-Energy/ben/create
rouille Mar 1, 2021
0090c63
refactor: modify scenario list schema (#405)
rouille Mar 1, 2021
3261c01
docs: update code snippet in README after refactoring of the Create c…
rouille Mar 9, 2021
04f1705
refactor: use grid model in mock objects (#409)
rouille Mar 10, 2021
08f9f6b
fix/refactor: return grid model for ScenarioGrid, reduce repeated get…
danielolsen Mar 11, 2021
6c3124f
Merge pull request #414 from Breakthrough-Energy/model
rouille Mar 13, 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
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
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# migrate code style to black
840af5a40f25c92fe33cba69ed4fda3f1be6709c
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/data-intake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Data Intake
about: Investigate the use of external data
title: Data Intake
labels: data intake
assignees: danielolsen, rouille

---

### Source
* Name: ***e.g.*** Form EIA-923
* Author: ***e.g.*** EIA
* Description: ***e.g.*** Electric power data -- monthly and annually -- on electricity generation, fuel consumption, fossil fuel stocks, and receipts at the power plant and prime mover level for 2016
* Source: ***e.g.*** https://www.eia.gov
* Exact source location: ***e.g.*** https://www.eia.gov/electricity/data/eia923/
* Terms (if specified): ***e.g.*** https://www.eia.gov/about/copyrights_reuse.php where it is written that we may use and/or distribute any of their data, files, databases, reports, graphs, charts, and other information products that are on their website

### Destination
* Modifications to source files(s): ***e.g.*** None
* Location: powersimdata/...

### General Purpose
The data are used to ...
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Pull Request doc](https://breakthrough-energy.github.io/docs/user/git_guide.html#d-pull-request)

### Purpose
What is the larger goal of this change?

### What the code is doing
How is the purpose executed?

### Testing
How did you test this change (unit/functional testing, manual testing, etc.)?

### Where to look
* It's helpful to clarify where your new code lives if you moved files around or there could be confusion/

* What files are most important?

### Usage Example/Visuals
How the code can be used and/or images of any graphs, tables or other visuals (not always applicable).

### Time estimate
How long will it take for reviewers and observers to understand this code change?
14 changes: 14 additions & 0 deletions .github/workflows/docs-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Update docs

on:
push:
branches:
- develop

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: Breakthrough-Energy/actions/publish-docs@main
with:
token: ${{ secrets.CI_TOKEN_CLONE_REPO }}
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint

on: push

jobs:
formatting:
if: "!contains(github.event.head_commit.message, 'skip_ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade tox
- run: tox -e checkformatting
flake8:
if: "!contains(github.event.head_commit.message, 'skip_ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade tox
- run: tox -e flake8
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pytest

on: push

jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip_ci')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]

name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Start postgres container
run: |
docker-compose -f stack.yml up -d
while ! nc -z localhost 5432; do sleep 1; done;
working-directory: powersimdata/data_access

- run: python -m pip install --upgrade pip tox
- run: tox -e pytest-ci
142 changes: 142 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# This is specific to this package
powersimdata/utility/.server_user

# The remainder of this file taken from github/gitignore
# https://github.com/github/gitignore/blob/master/Python.gitignore


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Editors
.vscode/
.idea/

# Mac/OSX
.DS_Store

# Windows
Thumbs.db
Loading