WIP: Struggling to slide through pipeline (II)

This commit is contained in:
Jean Sirmai 2021-12-14 19:56:00 +01:00
parent f445d4d534
commit ea93bd0aad
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 23 additions and 22 deletions

View File

@ -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)