We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003131e commit 4f4d5efCopy full SHA for 4f4d5ef
structure_threader/argparser.py
@@ -297,11 +297,12 @@ def argument_modifications(arguments):
297
them.
298
"""
299
# Transform a single K value into a list
300
- if isinstance(arguments.k_list, int):
301
- arguments.k_list = range(1, arguments.k_list + 1)
+ if arguments.main_op == "run":
+ if isinstance(arguments.k_list, int):
302
+ arguments.k_list = range(1, arguments.k_list + 1)
303
- # Switch relative to absolute paths
304
- arguments.infile = os.path.abspath(arguments.infile)
305
- arguments.outpath = os.path.abspath(arguments.outpath)
+ # Switch relative to absolute paths
+ arguments.infile = os.path.abspath(arguments.infile)
306
+ arguments.outpath = os.path.abspath(arguments.outpath)
307
308
return arguments
0 commit comments