Skip to content

Commit

Permalink
Merge pull request #218 from SiLab-Bonn/correct_prober_api_response
Browse files Browse the repository at this point in the history
ENH: get_die now outputs the unmodified die position from the prober api
  • Loading branch information
cbespin committed Apr 29, 2024
2 parents 4b70ca5 + 47a93cb commit ce1c257
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions basil/HL/SentioProber.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ def goto_first_die(self):

def get_die(self):
''' Get chip index '''
print("Check if return order of col and row is correct and consistent with other pc drivers.")
values = self._intf.query("map:die:get_current_index").split(",")
print(int(values[-2]), int(values[-1]))
reply = self._intf.query("map:die:get_current_index").strip()
if reply == '0:' or reply == '':
reply = self._intf.query("map:die:get_current_index")

values = reply[2:].split(',')

return (int(values[0]), int(values[1]))

def contact(self):
''' Move chuck to contact z position'''
Expand Down
4 changes: 3 additions & 1 deletion basil/HL/SignatoneProber.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def get_die(self):
reply = self._intf.query('GETCR')
else:
break

reply = re.sub(r'[a-zA-Z]', r'', reply)
values = reply.split(',')
return (abs(int(values[0])), abs(int(values[1])))

return (int(values[0]), int(values[1]))

def contact(self):
''' Move chuck to contact z position'''
Expand Down

0 comments on commit ce1c257

Please sign in to comment.