From 60a098bd050b9c6348a5e6aca16b832f2cd115b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20S=C3=A9n=C3=A9si?= Date: Mon, 1 Jul 2024 07:11:53 +0200 Subject: [PATCH] Fix calling convert (arguments order) --- climaf/cache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/climaf/cache.py b/climaf/cache.py index ca196ef..0fe0f73 100644 --- a/climaf/cache.py +++ b/climaf/cache.py @@ -224,11 +224,11 @@ def do_move(crs, filename, outfilename): filename) elif re.findall(".png$", filename) and convert_software is not None: crs2 = crs.replace(r"%", r"\%").replace(r'"', r'\"') - command = "%s -set \"CRS_def\" \"%s\" -set \"CliMAF\" " \ + command = "%s %s -set \"CRS_def\" \"%s\" -set \"CliMAF\" " \ "\"CLImate Model Assessment Framework version " \ - "%s (http://climaf.rtfd.org)\" %s %s.png && mv -f %s.png %s" % \ - (convert_software, crs2, climaf_version, - filename, filename, filename, filename) + "%s (http://climaf.rtfd.org)\" %s.png && mv -f %s.png %s" % \ + (convert_software, filename, crs2, climaf_version, + filename, filename, filename) elif re.findall(".pdf$", filename) and pdftk_software is not None: tmpfile = str(uuid.uuid4()) command = "%s %s dump_data output %s && echo -e \"InfoBegin\nInfoKey: Keywords\nInfoValue: %s\" " \