Coder Social home page Coder Social logo

virtualbrainlab / ephys-link Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 883 KB

A Python Socket.IO server that allows any Socket.IO-compliant application to communicate with manipulators used in electrophysiology experiments.

Home Page: https://virtualbrainlab.org/ephys_link/installation_and_use.html

License: GNU General Public License v3.0

Python 100.00%
neuroscience neurotech python sensapex virtualbrainlab electrophysiology ephys socket-io new-scale

ephys-link's Introduction

ephys-link's People

Contributors

dbirman avatar dependabot[bot] avatar kjy5 avatar

Stargazers

 avatar

Watchers

 avatar

ephys-link's Issues

Debug flag

  • CLI or something argument to turn off all printing
  • Document

Make Linux and macOS compatible

Currently, using the DLL restricts the server to only run on windows environments. Linux should be compatible with the right tools and so is macOS (probably through some documentation).

  • Works in Linux
  • Works in macOS
  • Document how to use/install

Documentation fixes

  • Use an error reporting function or something to make it more streamlined
  • Make sure error messages are correct in docs
  • User NoReturn and check with mypy
  • Make overridden functions public and put comments as appropriate

Invalid method encountered when no system connected

Describe the bug
Non-crashing error called when no system is connected for an extended period of time (is repeatedly called)

Error handling request
Traceback (most recent call last):
  File "C:\Users\Kenneth\Documents\ephys-link\lib\site-packages\aiohttp\web_protocol.py", line 334, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"

To Reproduce
Steps to reproduce the behavior:

  1. Start server
  2. Connect, then disconnect Pinpoint
  3. Wait a very long time

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Explicitly enable write

  • Send event to enable writing (otherwise only read operations allowed)
  • Can be time bound (return back to read only after set time)
  • Document set_inside_brain and set_can_write

Find better movement wait system

Currently using

while not movement.finished:
    await asyncio.sleep(0.1)

Because Sensapex API event is threading and server is using asyncio

Either:

  • Convert server to use threading (may have performance hit)
  • Convert Sensapex API to use asyncio

Simultaneous movement

  • Allow for multiple manipulators to move at once
  • Update documentation about this
    • Add documentation for calibration functions

Write position infrastructure

  • When given positional data, write that position to the manipulator
  • Continuous position receive
  • Multiple manipulators Sequential manipulator movement

Change stop button to be continuous

  • When pressed, continue to send stop message
  • Continuously calls stop (forces client to also recognize that the program is being stopped on start)

Document server

Put stuff about #5 , #6 , #7 into docs

  • Call messages "events" instead
  • Sensapex API installation instructions (for development; place in README and in doc website)
  • Pip installation

Fix documentation compatibility

Describe the bug

  • Unable to import ephys_link.server
  • Unable to import ephys_link.sensapex_handler
  • Docstring may be in the wrong format

To Reproduce
Steps to reproduce the behavior:

  1. make html in doc

Restrict axis movement once inside brain

  • Register when a probe is inside the brain
  • All probes inside brain can only move along depth axis
  • New (separate) function to only move probe along depth axis
  • Document

Moved to #32

  • Detect when probe is inside brain
  • Detect pressure

Continuous read script

For recording an experiment live

  • Record/save positional data to a file
  • Lock out all write movement
  • Attach time stamp to all positional data
  • Make sure they don't interfere with controller movement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.