From a9c8927f5d499bbf03eaa334c5fe8c743852d82d Mon Sep 17 00:00:00 2001 From: Kenneth Yang <82800265+kjy5@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:16:47 -0800 Subject: [PATCH] 267 change communication to use pure json strings (#274) * Update python version in env * Converted server into a class * Fixed server class * Respond with JSON strings * Fix documentation * Make catch all return "UNKNOWN_EVENT" * Default configure for sensapex * Read and parse input as strings --- .idea/codeStyles/Project.xml | 4 +- .idea/codeStyles/codeStyleConfig.xml | 1 - .idea/misc.xml | 3 + pyproject.toml | 1 + src/ephys_link/__main__.py | 9 +- src/ephys_link/common.py | 25 + src/ephys_link/gui.py | 1 - src/ephys_link/platform_handler.py | 2 +- src/ephys_link/server.py | 783 +++++++++++++-------------- 9 files changed, 418 insertions(+), 411 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index a4cb319..2096fd2 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,8 +1,8 @@ - \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml index 6e6eec1..79ee123 100644 --- a/.idea/codeStyles/codeStyleConfig.xml +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -1,6 +1,5 @@ \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index ed0007e..7b1598c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,4 +4,7 @@