Binning_z broken for single-slice
Happens for /data/visitor/blc14450/bm18//REC_20230307/HA-2200_LG_19_800_0004/HA-2200_LG_19_800_0004_0001/HA-2200_LG_19_800_0004_0001.nx
and the attached nabu.conf
The culprit is around here:
# In this case we can do everything in a single stage
n_slices = self.delta_z
(margin_up, margin_down) = (min(margin_v, self.z_min), min(margin_v, self.n_z - self.z_max))
self.tasks = [
{
"sub_region": (
(0, self.n_angles),
(self.z_min - margin_up, self.z_max + margin_down),
(0, self.chunk_shape[-1]),
),
"margin": ((margin_up, margin_down), (0, 0)),
}
]
return
For binning = (4, 4)
we have tasks = [{'sub_region': ((0, 12000), (1460, 1501), (0, 5056)),'margin': ((20, 20), (0, 0))}]
so final reconstruction shape will be computed as (1501-1460)//4 - 20*2