Skip to content

Commit

Permalink
Fix calling convert (arguments order)
Browse files Browse the repository at this point in the history
  • Loading branch information
senesis committed Jul 1, 2024
1 parent 005b22e commit 60a098b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions climaf/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\" " \
Expand Down

0 comments on commit 60a098b

Please sign in to comment.