Skip to content

Conversation

@jbowler06
Copy link
Collaborator

See issue #6

the UI now annotates in the .tdml file whenever the "Open Valve" button is pressed during a trial. The normal behavior is unaffected, so the ardunio messages that a valve has been opened will still appear regardless of if they are experimenter triggered or triggered by a context.

The new entry in the .tdml files matches the following pattern:
{"behavior_mate": {"test_valve": {"duration": 200,"pin": 52}},"time": 4.7769999504089355}
with the behavior_mate key indicating that it's a UI message (as opposed to the behavior_controller tag associated with the valve opening message)

In order to parse the new entries in the .tdml file the parser script needs to be edited. Attached here is my version of the edited parser script and a build .jar file. I built this fix on top of the send_thread branch so that patch is included in this .jar file as well.

zipped .jar file: BehaviorMate.jar.zip
zipped python behavior parser: tdmlPickler.py.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants