WIP: résolution du pipeline

This commit is contained in:
Jean Sirmai 2021-12-14 20:46:41 +01:00
parent c796b06451
commit 3cb73c7abb
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 6 additions and 4 deletions

View File

@ -8,4 +8,4 @@ stages:
flake8:
stage: Static Analysis
script:
- flake8 --max-line-length=120 --ignore=E402,E266, src/*.py
- flake8 --max-line-length=120 --ignore=E402,E266,W503 src/*.py

View File

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