nalmadi / EMIP-Toolkit

EMIP Toolkit (EMTK): A Python Library for Processing Eye Movement in Programming Data
16 stars 22 forks source link

add_srml_to_AOIs, add_tokens_to_AOIs are not extendable for future datasets #71

Open quanphan2906 opened 2 years ago

quanphan2906 commented 2 years ago

These functions manually matches the name of the stimuli with the name of the original code file, from which the stimuli was adapted. An example can be seen below (this is taken from add_tokens_to_AOIs):

https://github.com/nalmadi/EMIP-Toolkit/blob/d1a7eabd08ca27c062b5f14118395eaea8d5eac2/emip_toolkit.py#L1222-L1245

This needs to be refactor to make the two functions extendable for future datasets.