Skip to content

Commit

Permalink
Merge pull request #38 from Semi-ATE/seimit_issue_36
Browse files Browse the repository at this point in the history
Fixed Pass/FailPTR record
  • Loading branch information
seimit committed Dec 21, 2021
2 parents 10ab713 + a00dc1d commit 3ab4ed0
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions Semi_ATE/STDF/PTR.py
Expand Up @@ -128,31 +128,28 @@ def to_atdf(self):
# 1 = Test completed with no pass/fail indication

v = self.get_fields(6)[3]
if v != None and v[6] == '1':
buff += ' '
elif v != None and v[6] == '0':
test_status = 'Unknown'
# TEST_FLG
# bit 7:
# 0 = Test passed
# 1 = Test failed

if v[7] == '0':
buff += 'P'
test_status = 'P'
elif v[7] == '1':
buff += 'F'
test_status = 'F'

# 7 PARM_FLG
# bit 5:
if v != None:
if v[6] == '1':
buff += ' '
elif v[6] == '0':
test_status = 'Unknown'
# TEST_FLG
# bit 7:
# 0 = Test passed (ignore value, go to PARM_FLG bit 5)
# 1 = Test failed
if v[7] == '1':
buff += 'F'
else:
# PARM_FLG
# bit 5:
# 0 = Test failed or test passed standard limits
# 1 = Test passed alternate limits
v = self.get_fields(7)[3]
if v != None and v[5] == '0':
buff += test_status
elif v != None and [5] == '1':
buff += 'A'
v = self.get_fields(7)[3]
if v != None:
if v[5] == '0':
buff += 'P'
elif v[5] == '1':
buff += 'A'
body += "%s|" % buff
# Alarm Flags:
# TEST_FLG bits 0, 2, 3, 4 & 5
Expand Down

0 comments on commit 3ab4ed0

Please sign in to comment.