diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d27c286..0f4a8ff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,4 +8,4 @@ stages: flake8: stage: Static Analysis script: - - flake8 --max-line-length=120 --ignore=E402,E266, src/*.py \ No newline at end of file + - flake8 --max-line-length=120 --ignore=E402,E266,W503 src/*.py \ No newline at end of file diff --git a/src/glimpse.py b/src/glimpse.py index ec2ce66..f175303 100644 --- a/src/glimpse.py +++ b/src/glimpse.py @@ -114,7 +114,7 @@ nb_arrows = int(model.testmodel.get_states().get_space(0).get_nb_arrows()) print("space size = ", size, " nb de sites par cellule = ", sites, - " nb total de flèches dans l'espace = ", nb_arrows) + " nb total de flèches dans l'espace = ", nb_arrows) print(' | ', end=' ') @@ -132,8 +132,10 @@ for n in range(0, size + 1): for s in range(0, sites): arr = 0 for a in range(0, nb_arrows): - if (sp.get_arrow(a).get_coord("x") == n - and sp.get_arrow(a).get_site() == s): + if ( + sp.get_arrow(a).get_coord("x") == n + and sp.get_arrow(a).get_site() == s + ): arr = sp.get_arrow(a).get_weight() if arr > 0: print(str(arr), end=' ')