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

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