From 4fd93f80ccfdb421856bab0ee63a2e6f196d4cbf Mon Sep 17 00:00:00 2001 From: Marta Plantykow Date: Mon, 4 Apr 2022 22:43:33 +0200 Subject: [PATCH 1/2] parse-hamnosys- Fix unnecesairy Thumb and Bending assignment Signed-off-by: Marta Plantykow --- parse-hamnosys.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/parse-hamnosys.py b/parse-hamnosys.py index 23848c2..45e57f6 100644 --- a/parse-hamnosys.py +++ b/parse-hamnosys.py @@ -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: From 42457def3d6c16cb2bd36eee2afe27c57f3d1706 Mon Sep 17 00:00:00 2001 From: Marta Plantykow Date: Mon, 4 Apr 2022 23:08:30 +0200 Subject: [PATCH 2/2] =?UTF-8?q?parse-hamnosys:=20Add=20=EE=83=A2=EE=80=BC?= =?UTF-8?q?=EE=83=A7=EE=80=B8=EE=83=A3=20analysis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marta Plantykow --- parse-hamnosys.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/parse-hamnosys.py b/parse-hamnosys.py index 45e57f6..b92e35c 100644 --- a/parse-hamnosys.py +++ b/parse-hamnosys.py @@ -625,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():