From 5a52450ae19f624640d91ec408ec232e9cfecbe9 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Mon, 20 Dec 2021 22:00:16 +0100 Subject: [PATCH] =?UTF-8?q?WIP:=20DATA=20Repr=C3=A9sentation=20Dilemna:=20?= =?UTF-8?q?Client=20=20XML=20=20Initial=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model.py | 4 +++- src/rules_tree.py | 3 ++- src/space.py | 5 ++--- 3 files changed, 7 insertions(+), 5 deletions(-) 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="")