File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/evaluate/src/weathergen/evaluate Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1010
1111import argparse
1212import logging
13+ import sys
1314from collections import defaultdict
1415from pathlib import Path
1516
2728
2829
2930def evaluate () -> None :
31+ # By default, arguments from the command line are read.
32+ evaluate_from_args (sys .argv [1 :])
33+
34+
35+ def evaluate_from_args (argl : list [str ]) -> None :
3036 parser = argparse .ArgumentParser (
3137 description = "Fast evaluation of WeatherGenerator runs."
3238 )
@@ -36,7 +42,7 @@ def evaluate() -> None:
3642 help = "Path to the configuration yaml file for plotting. e.g. config/plottig_config.yaml" ,
3743 )
3844
39- args = parser .parse_args ()
45+ args = parser .parse_args (argl )
4046
4147 # configure logging
4248 logging .basicConfig (level = logging .INFO )
You can’t perform that action at this time.
0 commit comments