@@ -75,6 +75,7 @@ def read_xl(
7575 inputs : list [str ],
7676 regions : str ,
7777 include_dummy_imports : bool ,
78+ case : str | None = None ,
7879 output_dir : str | None = None ,
7980 no_cache : bool = False ,
8081 stop_after_read : bool = False ,
@@ -90,6 +91,7 @@ def read_xl(
9091 "veda-attr-defaults.json" ,
9192 regions ,
9293 include_dummy_imports ,
94+ case ,
9395 )
9496
9597 if len (inputs ) == 1 :
@@ -573,6 +575,7 @@ def run(args: argparse.Namespace) -> str | None:
573575 args .input ,
574576 args .regions ,
575577 args .include_dummy_imports ,
578+ case = args .case ,
576579 output_dir = args .output_dir ,
577580 no_cache = args .no_cache ,
578581 stop_after_read = True ,
@@ -583,6 +586,7 @@ def run(args: argparse.Namespace) -> str | None:
583586 args .input ,
584587 args .regions ,
585588 args .include_dummy_imports ,
589+ case = args .case ,
586590 output_dir = args .output_dir ,
587591 no_cache = args .no_cache ,
588592 )
@@ -633,6 +637,11 @@ def parse_args(arg_list: None | list[str]) -> argparse.Namespace:
633637 action = "store_true" ,
634638 help = "Include dummy import processes in the model" ,
635639 )
640+ args_parser .add_argument (
641+ "--case" ,
642+ type = str ,
643+ help = "Case name to produce dd files for. If not provided, all the input files are used" ,
644+ )
636645 args_parser .add_argument (
637646 "--output_dir" , type = str , default = "output" , help = "Output directory"
638647 )
0 commit comments