timetag / ETA

ETA is a graphical event-driven programming language for time-tag processing.
https://timetag.github.io/
GNU General Public License v2.0
16 stars 6 forks source link

ROI cutting (Threshold) #105

Open linzuzeng opened 4 years ago

linzuzeng commented 4 years ago

~~We can maintain an old copy of the "result['h3']", and calculate the difference result_diff between current "result['h3']" and the old "result['h3']". We also need "result['countrate'][0]" which comes from the Virtual Instrument copied from the "countrate" recipe. In the meantime, we consider if "result['countrate'][0]>threslold", then we add that result_diff to the final histogram variable, for live display or file saving. Otherwise we discard result_diff of this section.~~ I don't understand what i said

linzuzeng commented 4 years ago

Samuel: https://docs.bokeh.org/en/dev/docs/gallery/range_tool.html https://github.com/bokeh/bokeh/issues/7795 I think we could use that for defining the regions.

linzuzeng commented 3 years ago

Lucas: fnAHgZrYVkoLdIzfxrofCgma

linzuzeng commented 3 years ago

you can simply write a FORMAT_QT_RAW to disk and use it with Lucas' solution as if shutter events are recorded physically

Maybe we can make a generic toolkit to add markers to a histogram and save the markers into memory with FORMAT_QT_RAW. I think the tricky part would be how to get the GUI work.

user_marker = Clip() 
user_marker.buffer=np.asbytes(....)
user_marker.RecordType=eta.FORMAT_QT_RAW
user_marker.BytesofRecords=10