WIP: Struggling to slide through pipeline (II)
This commit is contained in:
parent
f445d4d534
commit
ea93bd0aad
|
@ -42,6 +42,7 @@ class TreeNode(object):
|
|||
self.ch.append(ch_id)
|
||||
self.ch = sorted(self.ch, key=id)
|
||||
|
||||
|
||||
lll = []
|
||||
|
||||
for i in conditions_set: # sorted(conditions_set, key=id):
|
||||
|
@ -95,11 +96,6 @@ with open('input.txt', 'r') as f:
|
|||
for pre, _, node in RenderTree(root):
|
||||
print("%s%s" % (pre, node.name))
|
||||
"""
|
||||
##
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
##
|
||||
|
||||
|
@ -116,8 +112,10 @@ size = model.testmodel.get_parameters().spaceparam.get_dimension().get_x()
|
|||
nb_sites = int(model.testmodel.get_parameters().spaceparam.get_site_multiplicity())
|
||||
nb_arrows = int(model.testmodel.get_states().get_space(0).get_nb_arrows())
|
||||
|
||||
|
||||
print("space size = ", size, " nb de sites par cellule = ", nb_sites,
|
||||
" nb total de flèches dans l'espace = ", nb_arrows)
|
||||
|
||||
print(' | ', end=' ')
|
||||
|
||||
# TODO Contrôles de cohérence des données
|
||||
|
@ -141,9 +139,12 @@ for n in range(0, size + 1):
|
|||
print(str(arr), end = ' ')
|
||||
else:
|
||||
print('.', end = ' ')
|
||||
|
||||
print(' | ', end = ' ')
|
||||
|
||||
print('\n ' + ' ' * nb_sites * 2, end = '')
|
||||
|
||||
|
||||
for k in range(0, size + 1):
|
||||
if k < 9: print(k + 1, end=' '+ ' ' * nb_sites * 2)
|
||||
else: print(k + 1, end=' '+ ' ' * nb_sites * 2)
|
||||
|
|
Loading…
Reference in New Issue