Cleaner stderr prints

This commit is contained in:
Celine Mercier
2019-03-13 18:36:31 +01:00
parent e3c565d6be
commit 478d19ab43
15 changed files with 79 additions and 37 deletions

View File

@ -73,6 +73,9 @@ def run(config):
pb(i)
selection.append(i)
pb(i, force=True)
print("", file=sys.stderr)
# Save command config in View comments
command_line = " ".join(sys.argv[1:])
comments = View.get_config_dict(config, "tail", command_line, input_dms_name=[i_dms.name], input_view_name=[i_view.name])
@ -95,8 +98,8 @@ def run(config):
View.import_view(i_dms.full_path[:-7], o_dms.full_path[:-7], o_view_name, o_view_name_final)
o_view = o_dms[o_view_name_final]
print("\n")
print(repr(o_view))
#print("\n\nOutput view:\n````````````", file=sys.stderr)
#print(repr(o_view), file=sys.stderr)
# If the input and the output DMS are different, delete the temporary imported view used to create the final view
if i_dms != o_dms:
@ -104,3 +107,4 @@ def run(config):
o_dms.close()
i_dms.close()
logger("info", "Done.")