From deb505f4d123a5a4d0fee920fff8cceae7fa946b Mon Sep 17 00:00:00 2001 From: David Bold <dave@ipp.mpg.de> Date: Thu, 8 Sep 2022 12:13:54 +0200 Subject: [PATCH] Fix generating grids with options. --- zoidberg_w7x/gen_w7x.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zoidberg_w7x/gen_w7x.py b/zoidberg_w7x/gen_w7x.py index f4f0889..d5190af 100644 --- a/zoidberg_w7x/gen_w7x.py +++ b/zoidberg_w7x/gen_w7x.py @@ -23,8 +23,7 @@ from . import version, soft_name debug = False -def gen(conf, shape, **kw): - fn = f"""W7X-conf{conf}-{"x".join([str(d) for d in shape])}.fci.nc""" +def gen(conf, shape, fn, **kw): print(fn) with zbe.timeit(): zbe.W7X( @@ -65,7 +64,7 @@ def gen2(fn): continue kw.update(known_opts[opt]) print(kw) - gen(conf, shape, field_refine=0, **kw) + gen(conf, shape, fn, field_refine=0, **kw) def help(exit=0): -- GitLab