Skip to content

Commit

Permalink
updates zenodo wget and otoole version
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorb1 committed Apr 25, 2023
1 parent 3ff463b commit 15f8d1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 60 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ the free and open-source solver [GLPK](https://www.gnu.org/software/glpk/)

```bash
# Install the OSeMOSYS toolkit
pip install otoole>=1.0.0
pip install "otoole>=1.0.0"

# Download the dataset. On Linux or OSX use wget, otherwise download and unzip
wget https://zenodo.org/record/7736670/files/OSeMOSYS/simplicity-v1.0.zip?download=1
wget https://zenodo.org/record/7736836/files/OSeMOSYS/simplicity-v1.1.zip?download=1
unzip simplicity-v1.1.zip?download=1 -d simplicity

unzip simplicity-v1.0 -d simplicity
# Move the data to a new directory called simplicity/
mv simplicity/OSeMOSYS-simplicity-74b9610/* simplicity
rm -R simplicity/OSeMOSYS-simplicity-74b9610/

# Change working directory to the new simplicity folder
cd simplicity

# Create the GNUMathProg data file with otoole
mv simplicity/OSeMOSYS-simplicity-f0d3e83/* simplicity
otoole convert csv datafile simplicity/data ./simplicity.txt simplicity/config.yaml
otoole convert csv datafile data/ ./simplicity.txt config.yaml

# Solve the model
glpsol -m OSeMOSYS.txt -d simplicity.txt
Expand Down
2 changes: 1 addition & 1 deletion data/DiscountRate.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REGION,TECHNOLOGY,VALUE
REGION,VALUE

54 changes: 0 additions & 54 deletions data/default_values.csv

This file was deleted.

0 comments on commit 15f8d1c

Please sign in to comment.