[bin] compute: put a message if the node is already computed

This commit is contained in:
Fabien Castan 2017-11-10 19:32:50 +01:00
parent aa0f985077
commit bc81e50426

View file

@ -52,9 +52,13 @@ if args.node:
chunk = node.chunks[args.iteration]
if chunk.status.status != Status.SUCCESS or args.forceCompute:
chunk.process()
else:
print('Node chunk is already successfully computed. Nothing to do.')
else:
if not node.hasStatus(Status.SUCCESS) or args.forceCompute:
node.process()
else:
print('Node is already successfully computed. Nothing to do.')
else:
if args.iteration != -1:
print('Error: "--iteration" only make sense when used with "--node".')