`sliding-window` CoR estimation crashes on `bamboo_hercules.nx`
When running non-regression tests on bamboo_hercules.nx
, the CoR estimation crashes:
paleo@gpu4-01:~$ nabu /data/scisofttmp/paleo/nabu_end2end_tests/bamboo_hercules/nabu_2024.1.1.conf --slice middle
/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/cupyx/jit/_interface.py:173: FutureWarning: cupyx.jit.rawkernel is experimental. The interface can change in the future.
cupy._util.experimental('cupyx.jit.rawkernel')
Loaded darks from /scisoft/tomo_data/bamboo_hercules/bambou_hercules_0001_darks.hdf5
Loaded flats from /scisoft/tomo_data/bamboo_hercules/bambou_hercules_0001_flats.hdf5
Estimating center of rotation
Traceback (most recent call last):
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/bin/nabu", line 8, in <module>
sys.exit(main())
^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/app/reconstruct.py", line 111, in main
R = get_reconstructor(args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/app/reconstruct.py", line 86, in get_reconstructor
proc = ProcessConfig(conf_dict=conf_dict, create_logger=logfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/pipeline/processconfig.py", line 64, in __init__
self._dataset_estimations()
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/pipeline/processconfig.py", line 164, in _dataset_estimations
self._get_cor()
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/pipeline/fullfield/processconfig.py", line 184, in _get_cor
cor = estimate_cor(
^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/pipeline/estimators.py", line 67, in estimate_cor
estimated_cor = cor_finder.find_cor()
^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/pipeline/estimators.py", line 310, in find_cor
shift = self.cor_finder.find_shift(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_03_11/lib/python3.11/site-packages/nabu/estimation/cor.py", line 315, in find_shift
img_diff = img_1[:, win_1_start:win_1_end] - img_2[:, win_2_start:win_2_end]
It's probably because of a wrong estimated_cor_from_motor
field in the .nx
(actually new_bamboo_hercules.nx
) should be used.
Still, the application should not crash like this.