Empty canvases lead to crash
Testing v1.1.6 with dirigent and found a potential crash point that needs handling otherwise it stops an entire measurement sequence.
Luckily one of my modules wasn't working and provides us with this scenario: If a module experiences core column issues and masks them (or all pixels become masked) the pixelalive canvases can be empty and lead to this problem:
File "/mnt/storage/Software/dirigent/calseq/deps/felis/felis.py", line 218, in set_result
status, message, dict_results["AS"], is_sane, explanation = getattr(
File "/mnt/storage/Software/dirigent/calseq/deps/felis/core_methods/get_pixelalive.py", line 166, in get_pixelalive
export_canvas(stitchedcanvas, "D_B({0})_O({1})_H({2})_PixelAliveStitched".format(*numbers), path_results)
File "/mnt/storage/Software/dirigent/calseq/deps/felis/felis_helpers.py", line 23, in export_canvas
canvas.Draw()
AttributeError: 'NoneType' object has no attribute 'Draw'
Here is the Felis results folder zipped
I will mention this was tested with Ph2 ACF v6-15. Is there a required version of Ph2 ACF to have this working?