dfsf
This commit is contained in:
parent
d79999c56b
commit
8de9c150d5
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -186,3 +186,4 @@ cython_debug/
|
|||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
RSA.xlsx
|
||||
|
|
|
|||
3
.idea/.gitignore
vendored
Normal file
3
.idea/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
7
.idea/misc.xml
Normal file
7
.idea/misc.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.11 (pythonProject2)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (UDS)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/pythonProject2.iml" filepath="$PROJECT_DIR$/.idea/pythonProject2.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
10
.idea/pythonProject2.iml
Normal file
10
.idea/pythonProject2.iml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.11 (UDS)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
1255
RSA_UDS.txt
1255
RSA_UDS.txt
File diff suppressed because it is too large
Load Diff
|
|
@ -518,7 +518,7 @@ for line in lines:
|
|||
value = value.rstrip("\n")
|
||||
|
||||
# replicate your special handling rules
|
||||
if 'hauteur' or "deg" in variable:
|
||||
if 'hauteur' in variable or "deg" in variable:
|
||||
if value.strip() == "":
|
||||
continue
|
||||
|
||||
|
|
@ -570,7 +570,7 @@ for line in lines:
|
|||
# Exemple :
|
||||
# "PHD248+2 chemin de l'église" devient "248 chemin de l'église"
|
||||
# "PHC300-1 rue des lilas" devient "300 rue des lilas"
|
||||
# =================================================================
|
||||
# =================================================================
|
||||
if 'poteau' in valeurs:
|
||||
value = re.sub(r'^\D*(\d+)(?:[+-]\d+)?(.*)', r'\1\2', valeurs["poteau"])
|
||||
|
||||
|
|
@ -580,6 +580,17 @@ for line in lines:
|
|||
else:
|
||||
value = str(date.today())
|
||||
|
||||
#changer feet en cm
|
||||
|
||||
if "feet" in value:
|
||||
|
||||
value = value.replace("feet", "").strip()
|
||||
value_float = float(value)
|
||||
resultat = round(value_float * 30.48, 0)
|
||||
value = str(resultat)
|
||||
value = value.removesuffix(".0")
|
||||
console.log(value)
|
||||
|
||||
if 'longueur' in variable:
|
||||
|
||||
value = value.strip()
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ annee_inspection:
|
|||
hauteur_top:
|
||||
hauteur_mt1:
|
||||
hauteur_mt2:
|
||||
hauteur_mt3:
|
||||
hauteur_transfo:
|
||||
hauteur_bt1:
|
||||
hauteur_bt2:
|
||||
|
|
|
|||
155
test.txt
155
test.txt
|
|
@ -1,4 +1,4 @@
|
|||
poteau:PHD4-1 rue Church
|
||||
PHO6 rue Mcbain
|
||||
nom_poteau:
|
||||
adresse:
|
||||
travaux:
|
||||
|
|
@ -7,96 +7,117 @@ diametre:0.113
|
|||
anomalie_1:
|
||||
probleme_1:
|
||||
|
||||
lclc:R8M4B
|
||||
code_barre:LS1DRS
|
||||
lclc:
|
||||
code_barre:KN8ASK
|
||||
classe:
|
||||
longueur:86
|
||||
longueur:2.11 feet
|
||||
nbe_transfo:
|
||||
type_transfo:
|
||||
equip:Coupe-circuit
|
||||
annee:2001
|
||||
annee:1952
|
||||
annee_inspection:2021
|
||||
circonference:
|
||||
bois:
|
||||
date:
|
||||
releveur:
|
||||
|
||||
hauteur_top:9.96
|
||||
hauteur_mt1:tri
|
||||
hauteur_top:7.59
|
||||
hauteur_mt1:7.89
|
||||
hauteur_mt2:
|
||||
hauteur_mt3:9.27
|
||||
hauteur_mt3:
|
||||
hauteur_transfo:
|
||||
hauteur_bt1:6.57
|
||||
hauteur_bt2:6.67
|
||||
hauteur_lampadaire:6.07
|
||||
hauteur_toron1:4.27
|
||||
hauteur_toron2:4.07
|
||||
hauteur_toron3:3.87
|
||||
hauteur_toron4:4.07
|
||||
hauteur_bt1:5.77
|
||||
hauteur_bt2:6.20
|
||||
hauteur_bt3:
|
||||
hauteur_lampadaire:5.25
|
||||
hauteur_toron1:4.16
|
||||
hauteur_toron2:
|
||||
hauteur_toron3:
|
||||
hauteur_toron4:
|
||||
|
||||
conducteur_mt1:477 MCM
|
||||
phase_mt1:triphasé
|
||||
conducteur_mt1: 2/0 ACSR
|
||||
phase_mt1:monophasé
|
||||
dero_mt1:
|
||||
|
||||
conducteur_mt2:477 MCM
|
||||
phase_mt2:Triphasé
|
||||
conducteur_mt2:
|
||||
phase_mt2:
|
||||
deri_mt2:
|
||||
|
||||
conducteur_mt3:2/0 ACSR
|
||||
phase_mt3:Triphasé
|
||||
deri_mt3:
|
||||
|
||||
conducteur_bt1:TX 4/0
|
||||
conducteur_bt1:TX 4/0o
|
||||
visee_bt1:Non
|
||||
deri_bt1:
|
||||
|
||||
conducteur_bt2:2/0 Acsr
|
||||
visee_bt2:Non
|
||||
conducteur_bt2:
|
||||
visee_bt2:
|
||||
deri_bt2:
|
||||
|
||||
proprio_toron1:Bell
|
||||
type_toron1:10M
|
||||
nbe_de_câble_toron1:3
|
||||
diametre_toron1:35mm
|
||||
deg_sol_toron1:
|
||||
croisement_toron1:
|
||||
type_toron1:6M
|
||||
nbe_de_cable_toron1:3
|
||||
diametre_toron1:22mm
|
||||
deg_sol_toron1:3.98
|
||||
croisement_toron1:Non
|
||||
ancre_toron1:
|
||||
|
||||
proprio_toron2:Bell
|
||||
type_toron2:10M
|
||||
nbe_de_câble_toron2:3
|
||||
diametre_toron2:30mm
|
||||
deg_sol_toron2:
|
||||
croisement_toron2:
|
||||
ancre_toron2:
|
||||
note:x orange
|
||||
date:
|
||||
|
||||
proprio_toron3:Bell
|
||||
type_toron3:10M
|
||||
nbe_de_câble_toron3:3
|
||||
diametre_toron3:20mm
|
||||
deg_sol_toron3:2.72
|
||||
croisement_toron3:
|
||||
ancre_toron3:
|
||||
PHO6 rue Mcbain
|
||||
nom_poteau:
|
||||
adresse:
|
||||
travaux:
|
||||
diametre:0.113
|
||||
|
||||
proprio_toron4:Bell
|
||||
type_toron4:6M
|
||||
nbe_de_câble_toron4:1
|
||||
diametre_toron4:15mm
|
||||
deg_sol_toron4:3.50
|
||||
croisement_toron4:
|
||||
ancre_toron4:1
|
||||
anomalie_1:
|
||||
probleme_1:
|
||||
|
||||
note:degagement non ok toron attacj
|
||||
Her
|
||||
lclc:
|
||||
code_barre:KN8ASK
|
||||
classe:
|
||||
longueur:2.11 feet
|
||||
nbe_transfo:
|
||||
type_transfo:
|
||||
equip:Coupe-circuit
|
||||
annee:1952
|
||||
annee_inspection:2021
|
||||
circonference:
|
||||
bois:
|
||||
|
||||
tige_ancre1: 3/4
|
||||
cosse_ancre1:4
|
||||
type_ancre1:256p
|
||||
ecart_ancre1:4.8
|
||||
hauban1_ancre1:6M
|
||||
hauban2_ancre1:3/16
|
||||
hauban3_ancre1:5/16
|
||||
hauban4_ancre1:5/16
|
||||
etat_ancre1:OK
|
||||
espace_dispo_ancre1:Non
|
||||
---
|
||||
hauteur_top:7.59
|
||||
hauteur_mt1:7.89
|
||||
hauteur_mt2:
|
||||
hauteur_mt3:
|
||||
hauteur_transfo:
|
||||
hauteur_bt1:5.77
|
||||
hauteur_bt2:6.20
|
||||
hauteur_bt3:
|
||||
hauteur_lampadaire:5.25
|
||||
hauteur_toron1:4.16
|
||||
hauteur_toron2:
|
||||
hauteur_toron3:
|
||||
hauteur_toron4:
|
||||
|
||||
conducteur_mt1: 2/0 ACSR
|
||||
phase_mt1:monophasé
|
||||
dero_mt1:
|
||||
|
||||
conducteur_mt2:
|
||||
phase_mt2:
|
||||
deri_mt2:
|
||||
|
||||
conducteur_bt1:TX 4/0o
|
||||
visee_bt1:Non
|
||||
deri_bt1:
|
||||
|
||||
conducteur_bt2:
|
||||
visee_bt2:
|
||||
deri_bt2:
|
||||
|
||||
proprio_toron1:Bell
|
||||
type_toron1:6M
|
||||
nbe_de_cable_toron1:3
|
||||
diametre_toron1:22mm
|
||||
deg_sol_toron1:3.98
|
||||
croisement_toron1:Non
|
||||
ancre_toron1:
|
||||
|
||||
note:x orange
|
||||
date:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user