Skip to content

Commit

Permalink
Merge pull request #19 from hearai/mplantyk_devel
Browse files Browse the repository at this point in the history
Mplantyk devel
  • Loading branch information
mplantykow authored Apr 4, 2022
2 parents 13d4ef3 + 42457de commit f4bb62d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions parse-hamnosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,20 @@ def main(args):
data.at[index,
"NONDominant - Handshape - Baseform"] = int(key)
Hamnosys_copy[index] = Hamnosys_copy[index][1:]
if not(equal_to_nan(data.at[index, "NONDominant - "
"Handshape - "
"Thumb position"])):
data.at[index, "NONDominant - Handshape - Thumb position"] = -1
continue
if not(equal_to_nan(data.at[index, "NONDominant - "
"Handshape - "
"Bending"])):
data.at[index, "NONDominant - Handshape - Bending"] = -1
continue
data.at[index, "NONDominant - Handshape - Thumb position"] = 0
data.at[index, "NONDominant - Handshape - Bending"] = 0
# Hashape base for doesn have to be found, see:
# 
if not(equal_to_nan(data.at[index, "NONDominant - Handshape - "
"Thumb position"])):
data.at[index, "NONDominant - Handshape - Thumb position"] = -1
continue
data.at[index, "NONDominant - Handshape - Thumb position"] = 0
data.at[index, "NONDominant - Handshape - Bending"] = 0
char = Hamnosys_copy[index][0]
for key, value in HandshapeThumbPositionDict.items():
if char == value:
Expand Down Expand Up @@ -619,12 +625,6 @@ def main(args):
data.at[index, "NONDominant - Handposition - "
"Extended finger direction"] = int(key)
Hamnosys_copy[index] = Hamnosys_copy[index][1:]
if equal_to_nan(data.at[index, "NONDominant - Handposition - "
"Extended finger direction"]):
data.at[index, "NONDominant - Handposition - "
"Extended finger direction"] = -1
continue

# Extended finger direction - If there are two in a row
char = Hamnosys_copy[index][0]
for key, value in HandpositionFingerDirectionDict.items():
Expand Down

0 comments on commit f4bb62d

Please sign in to comment.