pnCCD and ePix: Fix input data shape if DAQ sends something funny
2 unresolved threads
2 unresolved threads
Compare changes
Files
2@@ -213,12 +213,9 @@ class Epix100CpuRunner(base_kernel_runner.BaseKernelRunner):
@@ -393,6 +390,10 @@ class Epix100Correction(base_correction.BaseCorrection):
Note that this can raise an exception if the shape product is not identical.
Yep, and that will be caught by a warning context in
BaseCorrection
resulting in a warning forinputDataState
.That warning could be better - it should #56 stop processing so as to not have additional confusing exceptions afterwards, and we can out there specifically watch out for a
ValueError
arising from failed shape change (currently, it'sRuntimeError
for empty hash or catch-all unexpected exception). Would review after !99.