Issue if distance not set
If the distance is not set in a NXtomo (so dataset_scanner.distance returns None) this prevent from launching a reconstruction (without paganin).
The error we get is:
cupy._util.experimental('cupyx.jit.rawkernel')
Browsing dataset
Updating dataset information with user configuration
Doing dataset estimations
Doing coupled validation
Traceback (most recent call last):
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_06_26/bin/nabu", line 8, in <module>
sys.exit(main())
^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_06_26/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_06_26/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_06_26/lib/python3.11/site-packages/nabu/pipeline/processconfig.py", line 70, in __init__
self._build_processing_steps()
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_06_26/lib/python3.11/site-packages/nabu/pipeline/fullfield/processconfig.py", line 604, in _build_processing_steps
rec_options["sample_detector_dist"] = self.dataset_info.distance # was checked to be not None earlier
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/tomo.esrf.fr/software/packages/linux/x86_64/tomotools/2024_06_26/lib/python3.11/site-packages/nabu/resources/dataset_analyzer.py", line 170, in distance
self._distance = abs(self.dataset_scanner.distance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bad operand type for abs(): 'NoneType'