Skip to content

0.6.0: detach plotting from data handling in Receiver

Latest
Compare
Choose a tag to compare
@leloup314 leloup314 released this 08 Nov 00:09
· 1 commit to master since this release

This release detaches the plotting to e.g. pg.ImageItems from the Receiver.handle_data method, allowing to set custom plot refresh rates per receiver. This avoids forced re-plotting on every incoming data which leads to massive CPU usage for e.g. M26 telescope planes (1152x576 pixels) using pymosa.online_monitor.
Thus CPU load can be reduced by decreasing the refresh rate per receiver on-the-fly, if needed, without dropping data.
Furthermore, a lut_from_colormap function has been added to the online_monitor.utils submodule, allowing to generate lookup tables for pg.ImageItems from matplotlib.colormaps such as 'viridis', 'plasma', etc.