PyPSA/pypsa-eur

Use imports and run directive instead of script directive for Snakefiles / clarify how to debug Snakemake scripts

fhg-isi opened this issue · 0 comments

Maybe you could

  • adapt the Snakemake rules to use run directives instead of script directives to allow for easier debugging in IDEs
    https://stackoverflow.com/questions/78677266/how-to-debug-scripts-for-pypsa-eur

  • and/or include some hints in the documentation,

    • that snakemake does not support debuggin in IDEs if script or shell directive is used instead of run directive.
    • explain how the mocksnackemake workaround can be used for the purpose of debugging.
    • how to handle issues with missing files for that workaround. Is there an extra set of files that are always present for purpose of testing/debugging? Or does it use "regular" files, that need to be created running corresponding scripts/rules beforehand?

Related:

#1118