Skip to content

Commit 2225cdb

Browse files
committed
Merge remote-tracking branch 'rael/wecc' into wecc_update_jszinai
# Conflicts: # switch_model/wecc/get_inputs.py
2 parents 9af118a + 5613d27 commit 2225cdb

File tree

122 files changed

+2133
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2133
-458
lines changed

.gitignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,python,venv,data,visualstudiocode,pycharm,jupyternotebooks,dotenv,virtualenv
33

44
### Data ###
5-
*.csv
6-
# Don't ignore data in switch_model.csv
7-
!switch_model/**/*.csv
85
*.dat
96
*.efx
107
*.gbr
@@ -18,8 +15,10 @@
1815
*.vcf
1916
*.xml
2017
*.pickle
18+
examples/**/outputs/*.csv
19+
examples/**/outputs/*.txt
20+
examples/**/graphs/*.png
2121
examples/**/info.txt
22-
examples/**/*.png
2322

2423
### dotenv ###
2524
.env
@@ -312,4 +311,7 @@ gurobi.log
312311
*.pdb
313312
*.sqlite3
314313

314+
### VIM ###
315+
tags
316+
315317
# End of https://www.toptal.com/developers/gitignore/api/macos,python,venv,data,visualstudiocode,pycharm,jupyternotebooks,dotenv,virtualenv

README.md

Lines changed: 2 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
####################
3+
Add load zone: ALL
4+
5+
Date applied:
6+
Description: This script adds a load_zone called ALL. The all load_zone can be used
7+
to specify that a plant should belong to all load zones. get_inputs.py will handle copying the plant
8+
to all the load zones.
9+
#################
10+
*/
11+
12+
INSERT INTO switch.load_zone (load_zone_id, name, description)
13+
VALUES (
14+
51,
15+
'_ALL_ZONES',
16+
'This zone can only be used to specify that a generation plant should be copied to all the other zones.' ||
17+
'This zone will be filtered out during get_inputs and should never be read by SWITCH.'
18+
);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
####################
3+
Add Improved Storage Module columns
4+
5+
Date applied: 2021-06-11
6+
Description: This script adds the columns daily_self_discharge_rate, discharge_efficiency and
7+
land_use_rate to the generation_plant table. These columns were added as part of the
8+
improvements to the storage module that Martin Staadecker completed when studying long-duration
9+
energy storage. See REAM-lab pull request #42.
10+
#################
11+
*/
12+
13+
ALTER TABLE switch.generation_plant ADD COLUMN daily_self_discharge_rate real;
14+
ALTER TABLE switch.generation_plant ADD COLUMN discharge_efficiency real;
15+
ALTER TABLE switch.generation_plant ADD COLUMN land_use_rate real;

database/README.md

Lines changed: 6 additions & 90 deletions

database/TEMPLATE.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
####################
3+
TITLE
4+
5+
Date applied:
6+
Description:
7+
...
8+
...
9+
...
10+
#################
11+
*/
12+
13+
-- SQL Code goes here

0 commit comments

Comments
 (0)