You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As of now, grid-builder cannot be imported into another Snakemake workflow by pointing to the github url.
To Reproduce
Steps to reproduce the behavior:
Import the module into a Snakemake workflow.
configfile: "config/modules/grid_builder.yaml"
module module_grid_builder:
pathvars:
logs="results/module_grid_builder/logs",
resources="results/module_grid_builder/resources",
results="results/module_grid_builder/results",
snakefile:
github(
"pypsa/grid-builder",
path="workflow/Snakefile",
tag="6905b99",
)
config:
config["grid_builder"]
use rule * from module_grid_builder as module_grid_builder_*
rule all_grid_builder:
default_target: True
input:
rules.module_grid_builder_retrieve_osm_all.input,
Request something from the module
pixi run snakemake -c 2 all_grid_builder
See error
ImportError in file "https://raw.githubusercontent.com/pypsa/grid-builder/6905b99/workflow/Snakefile", line 8:
cannot import name 'load_region_configs' from 'scripts._schema'
File "https://raw.githubusercontent.com/pypsa/grid-builder/6905b99/workflow/Snakefile", line 8, in <module>
Expected behavior
The reference to scripts._schema should be correctly resolved.
Desktop (please complete the following information):
Activity