Valve logging #9
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_matekey indicating that it's a UI message (as opposed to thebehavior_controllertag 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