WIP: résolution du pipeline
This commit is contained in:
parent
c796b06451
commit
3cb73c7abb
|
@ -8,4 +8,4 @@ stages:
|
||||||
flake8:
|
flake8:
|
||||||
stage: Static Analysis
|
stage: Static Analysis
|
||||||
script:
|
script:
|
||||||
- flake8 --max-line-length=120 --ignore=E402,E266, src/*.py
|
- flake8 --max-line-length=120 --ignore=E402,E266,W503 src/*.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,
|
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=' ')
|
print(' | ', end=' ')
|
||||||
|
|
||||||
|
@ -132,8 +132,10 @@ for n in range(0, size + 1):
|
||||||
for s in range(0, sites):
|
for s in range(0, sites):
|
||||||
arr = 0
|
arr = 0
|
||||||
for a in range(0, nb_arrows):
|
for a in range(0, nb_arrows):
|
||||||
if (sp.get_arrow(a).get_coord("x") == n
|
if (
|
||||||
and sp.get_arrow(a).get_site() == s):
|
sp.get_arrow(a).get_coord("x") == n
|
||||||
|
and sp.get_arrow(a).get_site() == s
|
||||||
|
):
|
||||||
arr = sp.get_arrow(a).get_weight()
|
arr = sp.get_arrow(a).get_weight()
|
||||||
if arr > 0:
|
if arr > 0:
|
||||||
print(str(arr), end=' ')
|
print(str(arr), end=' ')
|
||||||
|
|
Loading…
Reference in New Issue