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

@ -314,6 +314,9 @@ def run(config):
if good :
selection.append(i)
pb(i, force=True)
print("", file=sys.stderr)
# Create output view with the line selection
try:
o_view = selection.materialize(o_view_name)
@ -337,11 +340,13 @@ 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:
View.delete_view(i_dms, o_view_name)
o_dms.close()
i_dms.close()
logger("info", "Done.")