mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-26 10:53:01 +00:00
PNG: create output dir if doesn't exist
This commit is contained in:
parent
3f7db6fa78
commit
81e53efd9c
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ def run(args):
|
||||||
sys.stderr.write(">>> Complete\n")
|
sys.stderr.write(">>> Complete\n")
|
||||||
|
|
||||||
def do_png(args, ai, dataset, model_code):
|
def do_png(args, ai, dataset, model_code):
|
||||||
|
if not os.path.exists(args.output):
|
||||||
|
os.mkdir(os.path.dirname(args.output))
|
||||||
|
|
||||||
model_params = json.loads(readfile(args.params))
|
model_params = json.loads(readfile(args.params))
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
|
|
Loading…
Reference in a new issue