Skip to content

Commit

Permalink
Merge pull request #30 from rschuchmann/fix-file-casing
Browse files Browse the repository at this point in the history
Fix file casing
  • Loading branch information
FFiand authored Dec 15, 2021
2 parents 79aa450 + 320808d commit f89d76a
Show file tree
Hide file tree
Showing 4 changed files with 494 additions and 248 deletions.
3 changes: 2 additions & 1 deletion conf_times_miro/times_miro.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@
},
"domainFilter": {
"domains": ["all_reg", "allyear", "prc", "com_grp", "all_ts", "lim", "cur", "uc_n"],
"filterVal": "-"
"filterVal": "-",
"showAll": true
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions times_miro.gms
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,13 @@ with open('myrun.gms','w') as frun:
if not '$if' in l.lower():
frun.write(l)
#add dd files that are not part of runfile to scenddmap
ddDiff = list(set(ddFiles) - set(ddList))
ddDiff = [file for file in ddFiles if file.lower() not in (x.lower() for x in ddList)]
for diff in ddDiff:
scenddmap.append(['0',diff.split('.dd')[0],'false'])
frun.write('$show\n')
gams.printLog("Execute gams myrun.gms ... and create myrun.gdx")

cmd = 'gams myrun.gms a=c ps=0 pw=512 gdx=myrun.gdx idir "' + r'%DDPREFIX% '.rstrip() + '"'
cmd = 'gams myrun.gms a=c ps=0 filecase=2 pw=512 gdx=myrun.gdx idir "' + r'%DDPREFIX% '.rstrip() + '"'
rc = os.system(cmd)
if not rc == 0:
raise NameError('Problem running myrun. Inspect myrun.lst')
Expand Down
Binary file modified times_miro.miroapp
Binary file not shown.
Loading

0 comments on commit f89d76a

Please sign in to comment.