Project

General

Profile

Bug #592

tm_period.py doesn't perform SBM1_BP2_F0

Added by Veronique bouzid almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
26/01/2016
Due date:
% Done:

0%

Estimated time:
revision:
r0

Description

Le script verif_fields.py utilise la fonction tm_period.py pour vérifier les timing des TM_LFR_SCIENCE.
Cette fonction ne traite pas correctement les produits TM_LFR_SCIENCE_SBM1_BP2_F0

extrait du fichier period_tm.txt, résultat produit par verif_fields.py

T(TM_LFR_SCIENCE_SBM1_BP1_F0): nom=0.25s, Nb(T)=1599.0, min=0.142613999997s, mean=0.249996834271s, max=0.345173000002s, Nb(T<0.225s)=9.13070669168%, Nb(T>0.275s)=9.13070669168%
T(.../PA_LFR_ACQUISITION_TIME): min=0.249984741211s, mean=0.249998425453s, max=0.25, Nb(T<0.225s)=0.0%, Nb(T>0.275s)=0.0%

T(TM_LFR_SCIENCE_SBM1_BP2_F0): nom=0.25s, Nb(T)=399.0, min=0.904447000001s, mean=1.00005980702s, max=1.094626s, Nb(T<0.225s)=0.0%, Nb(T>0.275s)=100.0%
T(.../PA_LFR_ACQUISITION_TIME): min=0.999984741211s, mean=0.999993689974s, max=1.0, Nb(T<0.225s)=0.0%, Nb(T>0.275s)=100.0%

--> normalement on devrait avoir nom= 1s pour les TM_LFR_SCIENCE_SBM1_BP2_F0.

Ces fichiers se trouvent dans /home/validation/data/R3/3.0.0.13/TEST-UNITAIRES/new_normal_mode/n_vs_sbm1/OLD

Le script verif_fields.py utilisé est celui se trouvant dans /home/validation/data/R3/scripts et il est recopié ensuite dans chaque répertoire de test.

History

#1 Updated by Veronique bouzid almost 6 years ago

  • Status changed from New to Closed

Le bug a été identifé.
Le fichier en cause est /opt/VALIDATION_R3/lfrverif/common/RulesClasses/tm_lfr_period.py.

Un mauvais copier/coller qui traiter les BP2_F0 avec les définitions des BP1_F0

Avant
if self.tab_delay_1_bp2_f0 != []:
self.add_summ_tm_lfr_common_stat(
"TM_LFR_SCIENCE_SBM1_BP2_F0",
self.t_1_bp_p0_nom,
self.tab_delay_1_bp2_f0,
self.t_1_bp_p0_min,
self.t_1_bp_p0_max,
self.tab_acqui_1_bp2_f0,
self.t_1_bp_p0_min_cuc,
self.t_1_bp_p0_max_cuc)
elif (self.mode_prev == '3'):
self.summ +=\
"TM_LFR_SCIENCE_SBM1_BP2_F0: period not computable\n"

Après
if self.tab_delay_1_bp2_f0 != []:
self.add_summ_tm_lfr_common_stat(
"TM_LFR_SCIENCE_SBM1_BP2_F0",
self.t_1_bp_p1_nom,
self.tab_delay_1_bp2_f0,
self.t_1_bp_p1_min,
self.t_1_bp_p1_max,
self.tab_acqui_1_bp2_f0,
self.t_1_bp_p1_min_cuc,
self.t_1_bp_p1_max_cuc)
elif (self.mode_prev == '3'):
self.summ +=\
"TM_LFR_SCIENCE_SBM1_BP2_F0: period not computable\n"

Le fichier periodic_tm.txt généré après les modifications donnent
T(TM_LFR_SCIENCE_SBM1_BP1_F0): nom=0.25s, Nb(T)=1599.0, min=0.142613999997s, mean=0.249996834271s, max=0.345173000002s, Nb(T<0.225s)=9.13070669168%, Nb(T>0.275s)=9.13070669168%
T(.../PA_LFR_ACQUISITION_TIME): min=0.249984741211s, mean=0.249998425453s, max=0.25, Nb(T<0.225s)=0.0%, Nb(T>0.275s)=0.0%

T(TM_LFR_SCIENCE_SBM1_BP2_F0): nom=1.0s, Nb(T)=399.0, min=0.904447000001s, mean=1.00005980702s, max=1.094626s, Nb(T<0.9s)=0.0%, Nb(T>1.1s)=0.0%
T(.../PA_LFR_ACQUISITION_TIME): min=0.999984741211s, mean=0.999993689974s, max=1.0, Nb(T<0.9s)=0.0%, Nb(T>1.1s)=0.0%

Also available in: Atom PDF