Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Incomp Verifierz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jbraclet
Incomp Verifierz
Commits
a893a94c
Commit
a893a94c
authored
1 year ago
by
raclet
Browse files
Options
Downloads
Patches
Plain Diff
Ajout des coll et export xlsx
parent
cbd12fee
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
groupes_sillons/VET_info.xlsx
+0
-0
0 additions, 0 deletions
groupes_sillons/VET_info.xlsx
incomp_apogee/incomp LV.xml.xlsx
+0
-0
0 additions, 0 deletions
incomp_apogee/incomp LV.xml.xlsx
main.py
+28
-0
28 additions, 0 deletions
main.py
with
28 additions
and
0 deletions
groupes_sillons/VET_info.xlsx
+
0
−
0
View file @
a893a94c
No preview for this file type
This diff is collapsed.
Click to expand it.
incomp_apogee/incomp LV.xml.xlsx
0 → 100644
+
0
−
0
View file @
a893a94c
File added
This diff is collapsed.
Click to expand it.
main.py
+
28
−
0
View file @
a893a94c
...
@@ -15,6 +15,7 @@ sillon_to_groups = {}
...
@@ -15,6 +15,7 @@ sillon_to_groups = {}
groupe_to_sillons
=
{}
groupe_to_sillons
=
{}
groupe_to_ue
=
{}
groupe_to_ue
=
{}
groupe_to_intitule
=
{}
groupe_to_intitule
=
{}
groupe_to_coll
=
{}
all_incompatibilities_apogee
=
set
()
all_incompatibilities_apogee
=
set
()
all_incompatibilities_theory
=
set
()
all_incompatibilities_theory
=
set
()
...
@@ -90,6 +91,8 @@ def verifier_apogee_vs_theory():
...
@@ -90,6 +91,8 @@ def verifier_apogee_vs_theory():
for
index
,
row
in
df
.
iterrows
():
for
index
,
row
in
df
.
iterrows
():
group1
=
row
[
'
COD_EXT_GPE
'
].
upper
()
group1
=
row
[
'
COD_EXT_GPE
'
].
upper
()
group2
=
row
[
'
COD_EXT_GPE1
'
].
upper
()
group2
=
row
[
'
COD_EXT_GPE1
'
].
upper
()
groupe_to_coll
[
group1
]
=
row
[
'
COD_EXT_COL
'
].
upper
()
groupe_to_coll
[
group2
]
=
row
[
'
COD_EXT_COL1
'
].
upper
()
# on vérifie que les 2 groupes de l'incomp appartiennent à la VET
# on vérifie que les 2 groupes de l'incomp appartiennent à la VET
if
(
group1
in
groupe_to_sillons
and
groupe_to_sillons
[
group1
]
if
(
group1
in
groupe_to_sillons
and
groupe_to_sillons
[
group1
]
...
@@ -135,6 +138,30 @@ def verifier_theory_vs_apogee():
...
@@ -135,6 +138,30 @@ def verifier_theory_vs_apogee():
else
:
else
:
print
(
"
Aucun oubli détecté.
"
)
print
(
"
Aucun oubli détecté.
"
)
def
export_missing_incomp
():
missing_incompatibilities
=
all_incompatibilities_theory
-
all_incompatibilities_apogee
if
missing_incompatibilities
:
data
=
[]
for
group1
,
group2
in
missing_incompatibilities
:
data
.
append
([
group1
,
groupe_to_ue
[
group1
],
groupe_to_intitule
[
group1
],
groupe_to_coll
[
group1
],
group2
,
groupe_to_ue
[
group2
],
groupe_to_intitule
[
group2
],
groupe_to_coll
[
group2
]
])
# Creating a DataFrame
df
=
pd
.
DataFrame
(
data
,
columns
=
[
'
Groupe 1
'
,
'
UE 1
'
,
'
Intitule 1
'
,
'
Coll 1
'
,
'
Groupe 2
'
,
'
UE 2
'
,
'
Intitule 2
'
,
'
Coll 2
'
])
# Writing to an Excel file
df
.
to_excel
(
'
incompatibilites_manquantes.xlsx
'
,
index
=
False
)
print
(
"
Oublis détectés dans les incompatibilités et écrits dans
'
incompatibilites_manquantes.xlsx
'
.
"
)
else
:
print
(
"
Aucun oubli détecté.
"
)
dic_creator
()
dic_creator
()
print_infos
()
print_infos
()
print
(
"
--- Apogee vs. theory:
"
)
print
(
"
--- Apogee vs. theory:
"
)
...
@@ -142,3 +169,4 @@ verifier_apogee_vs_theory()
...
@@ -142,3 +169,4 @@ verifier_apogee_vs_theory()
print
(
"
--- Theory vs. apogee:
"
)
print
(
"
--- Theory vs. apogee:
"
)
incomp_theory_creator
()
incomp_theory_creator
()
verifier_theory_vs_apogee
()
verifier_theory_vs_apogee
()
#export_missing_incomp()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment