Sorry, one more request from a different project. Whenever we display more than 255 types of stimuli, we cannot use a simple code. In such case we send two consecutive codes (within a few milliseconds apart) to indicate separate events. For example, we send 1 followed by 1, 1 followed by 2, etc.
The process 'process_evt_groupname' then allows us to combine these codes by name. The problem is that it fails when the codes are the same, so '1 2' works, but '1 1' is not detected. Currently there is no way to handle this case in Brainstorm. Could you extend this function to also work when the pairs of events are equal with each other?
[The process combine stim/response also cannot handle two events with same code, maybe this could also be extended similarly? This has more flexibility because it allows to determine the position of the created code]
There seems to be a different bug in process_evt_groupname. It now cannot rename any events (the E=A option). I appreciate if you can have a look.
We have a long list of events we need to rename (to remove 1-back trials) and the complementary process rename process_evt_rename is prohibitively slow and not practical.
I'm sorry, when coding the grouping of an event with itself, I forgot that the process could also be used for renaming... I added and additional test for handling the renaming separately:
process_evt_rename is prohibitively slow and not practical
I also modified this process so that it can take multiple events at once: