Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
trevorb1 opened this issue Jun 15, 2023 · 0 comments
Open
1 task done

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

trevorb1 opened this issue Jun 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@trevorb1
Copy link
Member

Conda environment check

  • I have tried using the osemosys-global conda environment.

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]
  1. 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 :=
;
@trevorb1 trevorb1 added the bug Something isn't working label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant