VisLab / HEDToolsArchived

Tools to support event annotation using hierarchical event descriptor (HED) tags.
Other
6 stars 1 forks source link

All tags appeared as one long string when tagging with CTAGGER #77

Closed dungscout96 closed 5 years ago

dungscout96 commented 5 years ago

After using CTAGGER to tag event type, the tags appeared in EEG.event.usertags and EEG.etc.tags as one long string without any comma-separation. When trying to extract epochs using tags, the whole tag string must be specified and thus individual tags can’t be used. The issue was replicated in both Linux Fedora and Windows 10 Home edition. However, macOS didn’t seem to have such issue. Tagging through excel workflow also didn’t seem to have the issue.

After tracing the bug in the Linux computer, it seems that the issue is with the JSON string created by CTAGGER before passing to tagMap to parse. In the “tags” array, each tag string is enclosed by an extra pair of square brackets, making it an array or arrays. After removing the extra square brackets, creating fieldMap using the new JSON, and tagging the dataset with the new fieldMap, the problem appeared to be fixed.

Screenshots and JSON file are attached in zip file. CTAGGERBugReport.zip

dungscout96 commented 5 years ago

Problem solved. Was using a deprecated version of CTAGGER (1.0.2).