CFEL-CMI / pymepix

PymePix is a Python library that provides control and acquisition for the Timepix3-SPIDR hardware. The rich set of data-structures and intuitive routines reduces time and coding effort to quickly configure, acquire, and visualize data from Timepix3. The highly extensible high-performance data-pipeline allows for alteration of the Timepix3 datastream into a form that is convinient for the user. This library is intended to be easily inserted into a standard scientific software stack as well as to allow for more direct interaction of Timepix3 with interactive flavors of Python. Included with the library are two example programs using PymePix: PymePix-acq is a command line control and acquisition program that can capture UDP packets and decode them into pixels and triggers. The second is pymepixviewer, an online control and data-acquisition program for general use, but with features geared toward mass-spectroscopy and ion imaging.
https://www.controlled-molecule-imaging.org/research/software
Other
15 stars 4 forks source link

Fix/centrdataconc #33

Closed samartse closed 2 years ago

samartse commented 2 years ago

Some bugfixing.

samartse commented 2 years ago

The try catch called approximately 100-200 times during complete processing. Therefore, I would say it has no overhead. It seems to me, that the try-catch block was set because of the bug. The point is, that the code could work under certain condition - when chunk was containing only one trigger data, or when two trigger data had the same number of voxels (what is less probable).

samartse commented 2 years ago

Try/catch section removed, None data is filtered during building up the list from map object. It must be certainly faster.

BenMoon commented 2 years ago

Fix problem empty centroiding lists