OSeMOSYS / osemosys_global

A global power system model generator for OSeMOSYS
https://osemosys-global.readthedocs.io/
GNU Affero General Public License v3.0
27 stars 14 forks source link

[BUG]: One timeslice per year breaks scripts #159

Open trevorb1 opened 1 year ago

trevorb1 commented 1 year ago

Conda environment check

Current Behavior

If I change the config file to be one timeslice per year, the workflow breaks :(

Expected Behavior

That OG would process data to be one ts per year called D1S1 (as defined in the config file shown below)

Steps To Reproduce

  1. Update the temporal parameters in the config file to be:
    dayparts:
    #daypart : [start_hour (inclusive), end_hour (exclusive)]
    D1: [0, 24]
    seasons:
    #season : [month 1, month 2, ...] (all inclusive)
    S1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  2. Run the workflow with snakemake -c

Operating System

Linux

Log output

GLPSOL--GLPK LP/MIP Solver 5.0
Parameter(s) specified in the command line:
 -m resources/osemosys_fast_preprocessed.txt -d results/India/PreProcessed_India.txt
 --wlp results/India/India.lp --check
Reading model section from resources/osemosys_fast_preprocessed.txt...
1130 lines were read
Reading data section from results/India/PreProcessed_India.txt...
results/India/PreProcessed_India.txt:26625: warning: final NL missing before end of file
26625 lines were read
Checking Max and Min capcity-investment bounds for r in REGION, t in TECHNOLOGY, y in YEAR 
Checking (line 176)...
Checking Annual activity limits for r in REGION, t in TECHNOLOGY, y in YEAR 
Checking (line 181)...
Checking Residual and TotalAnnualMax Capacity for r in REGION, t in TECHNOLOGY, y in YEAR 
Checking (line 186)...
Checking Residual, Total annual maxcap and mincap investments for  all Region, Tech and Year 
Checking (line 191)...
Checking Annual production by technology bounds for r in REGION, t in TECHNOLOGY, y in YEAR 
Checking (line 196)...
Checking TimeSlices/YearSplits for y in YEAR 
Checking (line 201)...
resources/osemosys_fast_preprocessed.txt:201: check[2020] failed
MathProg model processing error

Anything else?

The datafile has the incorrect definitions:

set TIMESLICE :=
nan
;
param default 0.0 : YearSplit :=
;