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 17 forks source link

Osemosys file list being overwritten in snakefile #87

Closed trevorb1 closed 2 years ago

trevorb1 commented 2 years ago

https://github.com/OSeMOSYS/osemosys_global/blob/d9268a52fa9cb423a5dbccfd9beefc5d64e6f72a/src/osemosys_global/snakefile#L308

In the FileCheck rule, we call the function fileCheckFunc() to let snakemake know what missing csv files will be written. This line is doing something weird to osemosysFiles list variable being passed around, which holds the master list of all required CSVs. After this point the osemosysFiles list is no longer recognized by any input or output parameters (see images below)

image

image

A couple of points that may help to solve this issue: