Slice reconstruction fails with vertical binning without helpful error message; mouse wheel easily messes up settings
I accidentally set vertical binning to 2 through mouse wheel scrolling. This happens to me quite often in various fields, esp. angle offset is another candidate when scrolling in the reconstruction tab, but I catch the mistake most of the time. Personal taste: Setting values with the mouse wheel does more harm than it is helpful, but I might be alone with this.
I do not want to use this feature, but report the error below. Thanks Henri @payno for the tip with right clicking on the red failed field for more information. I could not figure out yesterday what is wrong.
The error message warns about circle clipping for sub-regions, but I find that this works fine.
` Slices computation for NXtomo scan(master_file: 012_carbon_UD_IL_01/012_carbon_UD_IL_01_0001/012_carbon_UD_IL_01_0001_1_1_0012.nx, entry: entry0012) failed. ############# nabu ############## config: ------------- stderr ------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/app/reconstruct.py", line 152, in main() File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/app/reconstruct.py", line 146, in main R.reconstruct() File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/reconstruction.py", line 632, in reconstruct self._reconstruct_chunked() File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/reconstruction.py", line 584, in _reconstruct_chunked self._instantiate_pipeline_if_necessary(task, prev_task) File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/reconstruction.py", line 562, in _instantiate_pipeline_if_necessary self._instantiate_pipeline(current_task) File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/reconstruction.py", line 554, in _instantiate_pipeline pipeline = self._pipeline_cls(*args, logger=self.logger, margin=task["margin"], **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked_cuda.py", line 63, in init super().init( File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked.py", line 110, in init self._init_pipeline() File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked.py", line 287, in _init_pipeline self._init_reconstruction() File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/utils.py", line 20, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked.py", line 696, in _init_reconstruction self._allocate_recs(*self.process_config.rec_shape, n_slices=n_slices) File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked.py", line 240, in _allocate_recs self.recs = self._allocate_array((n_slices, ny, nx), "f", name="recs") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/nabu/pipeline/fullfield/chunked_cuda.py", line 99, in _allocate_array d_arr = garray.zeros(shape, dtype) # pylint: disable=E0606 ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/pycuda/gpuarray.py", line 1317, in zeros result = GPUArray(shape, dtype, allocator, order=order) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/tomo.esrf.fr/software/packages/ubuntu24.04/x86_64/tomotools/2025_09_05_stable/lib/python3.12/site-packages/pycuda/gpuarray.py", line 274, in init self.gpudata = self.allocator(self.size * self.dtype.itemsize) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OverflowError: can't convert negative value to unsigned int
------------- stdout ------------- Loaded darks from /home/esrf/rofische/data_ihma724/PROCESSED_DATA/012_carbon_UD_IL_01/012_carbon_UD_IL_01_0001/012_carbon_UD_IL_01_0001_1_1_0012_darks.hdf5 Loaded flats from /home/esrf/rofische/data_ihma724/PROCESSED_DATA/012_carbon_UD_IL_01/012_carbon_UD_IL_01_0001/012_carbon_UD_IL_01_0001_1_1_0012_flats.hdf5 Going to reconstruct slices (1070, 1070) Estimated margin: 43 pixels Processing sub-volume ((0, 500), (np.int64(1026), np.int64(1115)), (0, 2016))
`
