Pad constant if needed when broadcasted to more cells than available
3 unresolved threads
3 unresolved threads
Compare changes
+ 42
− 10
@@ -371,19 +371,48 @@ class AgipdBaseRunner(base_kernel_runner.BaseKernelRunner):
@@ -416,7 +445,7 @@ class AgipdBaseRunner(base_kernel_runner.BaseKernelRunner):
@@ -424,23 +453,26 @@ class AgipdBaseRunner(base_kernel_runner.BaseKernelRunner):
@@ -499,7 +531,7 @@ class AgipdBaseRunner(base_kernel_runner.BaseKernelRunner):
Unrelated to the MR.
Based on our offline discussion for better performance using zeros V ones. We can here initialize rel_gain_map with
np.empty
and fill it laterThis should be faster.
This part is in offline, maybe I should modify it there for better readability as well
Fair point. But given this is fast enough and likely a workaround for a more permament solution, let's hold on this for now.
@hammerd should investigate whether we can decouple this broadcasting from the
memoryCells
parameter and fold it into corrections, which should have to deal with this as well.