a-hurst / magneto Goto Github PK
View Code? Open in Web Editor NEWAn experimental Python library for controlling Magstim TMS hardware
An experimental Python library for controlling Magstim TMS hardware
At present, magneto has no support for Rapid or Rapid^2 stimulators. Support can eventually be added in two phases:
Rapid
class that provides an API for the unique rTMS abilities of the unit.The main barrier to 1) is the requirement of an "unlock code" for establishing serial control over Rapid units with software v9.0 or later. Some options for exposing this to the user could be:
a) Adding an environment variable where the unlock code can be stored, which has the benefit of working across all experiments on a computer, and/or
b) Adding a set_rapid_unlock
function for initializing the code in the runtime.
Additionally, we need a way of detecting whether a given stimulator is a Rapid so we can initialize it properly. The easiest method for this is probably checking the software version from the stimulator (BiStim & 200 report V1.9, lowest Rapid version seems to be V7.0), especially since the Rapid API is slightly different depending on the exact software version. However, I'm not sure whether newer BiStims have newer software versions or what the earliest Rapid software versions are (v7.0?) so it might help to have another way of checking. The 'get system version' function has a non-standard return style (null-terminated instead of fixed-length) so will need to be done outside the normal communication loop as a stand-alone function.
Initial steps for Rapid support:
Steps for dedicated Rapid class:
Hardware TODO:
To achieve better feature parity with MagPy, magneto should have a BiStim class for configuring pulse intervals and the power level for stimulator B. The basics for this are already in place since, but some additional work and creativity is needed for adding a pleasant and robust API for these units.
Steps for dedicated BiStim class:
Notes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.