Commit 61b56e81 authored by Samuel GAIST's avatar Samuel GAIST

[algorithms] Fix print statements

parent 34ae8bbe
......@@ -169,7 +169,7 @@ def pull(webapi, prefix, names, force, indentation, format_cache, lib_cache):
def print_examples():
print """
print("""
To feed data from a database to an algorithm:
=============================================
......@@ -247,7 +247,7 @@ To execute an analyzer:
"version": "<environment_version>"
}
}
"""
""")
......@@ -322,16 +322,16 @@ def execute(prefix, cache, instructions_file):
with executor:
result = executor.process()
if result['status'] != 0:
print 'STDERR:'
print result['stderr']
print('STDERR:')
print(result['stderr'])
# Display the results
if configuration.has_key('outputs'): # Standard algorithm
print 'Outputs of the algorithms available at:'
print('Outputs of the algorithms available at:')
for name, cfg in configuration['outputs'].items():
print ' - %s: %s' % (name, cfg['path'])
print(' - %s: %s' % (name, cfg['path']))
else:
print 'Results of the analyzer available at: %s' % configuration['result']['path']
print('Results of the analyzer available at: %s' % configuration['result']['path'])
except Exception as e:
import traceback
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment