-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into set_scenario_variables
- Loading branch information
Showing
17 changed files
with
1,703 additions
and
3,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repo_token: fZ0YDYNip5i0bzs2LTPY84oOzTJe01ppc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: flake8 | ||
args: ['--max-line-length=120'] # default of Black | ||
- id: requirements-txt-fixer | ||
- id: check-merge-conflict | ||
- id: name-tests-test | ||
args: ['--django'] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.4 | ||
hooks: | ||
- id: isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
sudo: false | ||
language: python | ||
python: | ||
- "3.6" | ||
- "3.6" | ||
|
||
# easiest way of getting rtree | ||
before_install: | ||
- sudo apt update | ||
- sudo apt install libspatialindex-dev | ||
- sudo apt update | ||
- sudo apt install libspatialindex-dev | ||
|
||
# command to install dependencies | ||
install: | ||
- pip install wheel | ||
- pip install Rtree | ||
- pip install -r requirements.txt | ||
- python setup.py develop | ||
|
||
# command to run tests | ||
- pip install wheel Rtree | ||
- pip install -r requirements.txt | ||
- pip install -U pytest pytest-cov coverage coveralls | ||
- python setup.py develop | ||
script: | ||
- pytest | ||
- pytest --cov onsset --cov-report html --verbose | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""Columns in the specs file must match these exactly | ||
""" | ||
SPE_COUNTRY = 'Country' | ||
SPE_POP = 'PopStartYear' # The actual population in the base year | ||
SPE_URBAN = 'UrbanRatioStartYear' # The ratio of urban population (range 0 - 1) in base year | ||
SPE_POP_FUTURE = 'PopEndYear' | ||
SPE_URBAN_FUTURE = 'UrbanRatioEndYear' | ||
SPE_URBAN_MODELLED = 'UrbanRatioModelled' # The urban ratio in the model after calibration (for comparison) | ||
SPE_URBAN_CUTOFF = 'UrbanCutOff' # The urban cutoff population calirated by the model, in people per km2 | ||
SPE_URBAN_GROWTH = 'UrbanGrowth' # The urban growth rate as a simple multplier (urban pop future / urban pop present) | ||
SPE_RURAL_GROWTH = 'RuralGrowth' # Same as for urban | ||
SPE_NUM_PEOPLE_PER_HH_RURAL = 'NumPeoplePerHHRural' | ||
SPE_NUM_PEOPLE_PER_HH_URBAN = 'NumPeoplePerHHUrban' | ||
SPE_DIESEL_PRICE_LOW = 'DieselPriceLow' # Diesel price in USD/litre | ||
SPE_DIESEL_PRICE_HIGH = 'DieselPriceHigh' # Same, with a high forecast var | ||
SPE_GRID_PRICE = 'GridPrice' # Grid price of electricity in USD/kWh | ||
SPE_GRID_CAPACITY_INVESTMENT = 'GridCapacityInvestmentCost' # grid capacity investments costs from TEMBA USD/kW | ||
SPE_GRID_LOSSES = 'GridLosses' # As a ratio (0 - 1) | ||
SPE_BASE_TO_PEAK = 'BaseToPeak' # As a ratio (0 - 1) | ||
SPE_EXISTING_GRID_COST_RATIO = 'ExistingGridCostRatio' | ||
SPE_MAX_GRID_DIST = 'MaxGridDist' | ||
SPE_ELEC = 'ElecActual' # Actual current percentage electrified population (0 - 1) | ||
SPE_ELEC_MODELLED = 'ElecModelled' # The modelled version after calibration (for comparison) | ||
SPE_ELEC_URBAN = 'Urban_elec_ratio' # Actual electrification for urban areas | ||
SPE_ELEC_RURAL = 'Rural_elec_ratio' # Actual electrification for rural areas | ||
SPE_MIN_NIGHT_LIGHTS = 'MinNightLights' | ||
SPE_MAX_GRID_EXTENSION_DIST = 'MaxGridExtensionDist' | ||
SPE_MAX_ROAD_DIST = 'MaxRoadDist' | ||
SPE_POP_CUTOFF1 = 'PopCutOffRoundOne' | ||
SPE_POP_CUTOFF2 = 'PopCutOffRoundTwo' | ||
SPE_ELEC_LIMIT = "ElecLimit" | ||
SPE_INVEST_LIMIT = "InvestmentLimit" | ||
SPE_DIST_TO_TRANS = "DistToTrans" | ||
|
||
SPE_START_YEAR = "StartYear" | ||
SPE_END_YEAR = "EndYEar" | ||
SPE_TIMESTEP = "TimeStep" |
Oops, something went wrong.