DTC state from language dict
This commit is contained in:
parent
384b5c9119
commit
e1a90ea5d4
@ -81,8 +81,8 @@ def get_default_std_a( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = 'ALIVE'
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
||||||
else: isAlive = 'MEMORISED'
|
else: isAlive = mod_globals.language_dict['646']
|
||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
DTCs = DTCs[9:]
|
DTCs = DTCs[9:]
|
||||||
continue
|
continue
|
||||||
@ -191,8 +191,8 @@ def get_default_std_b( df, mn, se, elm, calc, getDTCmnemo ):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = 'ALIVE'
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
||||||
else: isAlive = 'MEMORISED'
|
else: isAlive = mod_globals.language_dict['646']
|
||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
DTCs = DTCs[12:]
|
DTCs = DTCs[12:]
|
||||||
continue
|
continue
|
||||||
@ -299,8 +299,8 @@ def get_default_failflag( df, mn, se, elm, calc ):
|
|||||||
if df[dtc].status==0: #it is not a problem
|
if df[dtc].status==0: #it is not a problem
|
||||||
continue
|
continue
|
||||||
isAlive = ""
|
isAlive = ""
|
||||||
if df[dtc].status==1: isAlive = 'ALIVE'
|
if df[dtc].status==1: isAlive = mod_globals.language_dict['16882']
|
||||||
else: isAlive = 'MEMORISED'
|
else: isAlive = mod_globals.language_dict['646']
|
||||||
|
|
||||||
# Now get the interpretation
|
# Now get the interpretation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user