diff --git a/src/model.py b/src/model.py index 73779f3..b7e6cbc 100644 --- a/src/model.py +++ b/src/model.py @@ -446,7 +446,9 @@ class Model: self.__transitions = child def get_space(self, space_id, x_val, site_val): - return testmodel.get_states().get_space(space_id).get_weight(x_val, site_val) + pass + # return testmodel.get_states().get_space(space_id). + # get_weight(x_val, site_val) def get_identity(self): return Identity(self.__identity) diff --git a/src/rules_tree.py b/src/rules_tree.py index af61686..70a6937 100644 --- a/src/rules_tree.py +++ b/src/rules_tree.py @@ -101,6 +101,7 @@ with open('input.txt', 'r') as f: ## +testmodel.get_states().get_space(space_id). print("\n*** Conditions tree ***") print(type(model.testmodel.get_conditions())) @@ -157,4 +158,4 @@ for k in range(0, size + 1): print(k + 1, end=' ' + ' ' * sites * 2) print('\n', end = "") -""" \ No newline at end of file +""" diff --git a/src/space.py b/src/space.py index 588701c..6773dd1 100644 --- a/src/space.py +++ b/src/space.py @@ -6,7 +6,7 @@ sites = int(model.testmodel.get_parameters().spaceparam.get_site_multiplicity()) nb_arrows = int(model.testmodel.get_states().get_space(0).get_nb_arrows()) -print("\n space size = ", size, " nb de sites par cellule = ", sites, +print("\nspace size = ", size, " nb de sites par cellule = ", sites, " nb total de flèches dans l'espace = ", nb_arrows) print(' | ', end=' ') @@ -46,5 +46,4 @@ for k in range(0, size + 1): else: print(k + 1, end=' ' + ' ' * sites * 2) -print('\n', end = "") - +print('\n', end="")