pypsa-eur
pypsa-eur copied to clipboard
snakemake.input.ch_industrial_production, index_col=0 -> NameError: name 'snakemake' is not defined
Checklist
- [x] I am using the current
masterbranch. - [x] I am running on an up-to-date
pypsa-eurenvironment.
Error Message
When running the script build_industrial__production_per_country.py the workflow stops do to the following error:
snakemake.input.ch_industrial_production, index_col=0 -> NameError: name 'snakemake' is not defined
This seems to be caused somehow by multiprocessing
In my case I solved it by adding snakemake as an argument in the functions
get_energy_ratioindustry_production_per_countryindustry_production