self-promo, i have something that's gonna make neuroscientists shit themselves p...
jonny (nonvenomous) @jonny@neuromatch.social
Content warning: self-promo, i have something that's gonna make neuroscientists shit themselves pretty soon
so anyway first foray out for noob, converting some of our basic core-level data acquisition code for fpga-driven miniature microscopes proves the theory of noob in practice:
- each of the blocks runs in a different process
- we can reshuffle that sort of at whim by swapping between using tube nodes and extends in the top level tube config,
- handles the differing cardinality of headers and frames (there are n headers per frame, which is transmitted in chunks),
- keeps data local so we don’t need to e.g. send the binary data that only needs to exist within the fpga process between processes,
- we can then hang the rest of the preprocessing pipeline off the assemble frame node where it only deals with completed frames once they’re acquired.
- plotting code is isolated from runtime code.
- we can swap components on and off dynamically,
- future devices can just extend this skeleton and override subcomponents of it,
- all of it is separably testable because each node contains just its own state.
- the edges for static params are currently not drawn, but we can split up the monolithic config object and make each of the nodes more independent over time.
- all it took to convert the code to using noob was to make it better - decouple things and improve the type annotations.
this is the simplest core of our devices, and we have like a dozen other operations that we hang off this pipeline with ad-hoc package code that we can now just visually play around with by connecting different sub-pipelines.
if you like streaming graph processing (if you are a researcher, you do, even if you don't know it yet) that is researcher-sized and deals with plain python functions and classes rather than requiring a whole ass fuckin computing cluster and career of being a sysadmin, then we've got some shit that is gonna blow your ass to smithereens.