"machine_electric_current" metadata absent from reduced flat file
Description
It seems that the DKRF
widget does not write the metadata on synchrotron current, which prevents nabu from doing the SRCurrent normalization
Steps to reproduce
module load tomotools
- Use the DKRF wiget on a recent dataset - eg.
/data/visitor/md1397/bm05/20231122/PROCESSED_DATA/148_1.453um_paw_HHT_R_1_3_tower1/148_1.453um_paw_HHT_R_1_3_tower1_0001
- Inspect the produced
{dataset_basename}_flats.hdf5
What is the current bug behavior?
In this file, the machine current is absent:
What is the expected correct behavior?
Nabu does generate the metadata when reducing the flats:
from nabu.resources.dataset_analyzer import analyze_dataset
from nabu.resources.nxflatfield import update_dataset_info_flats_darks
di = analyze_dataset("/gpfs/ga/data/visitor/md1397/bm05/20231122/PROCESSED_DATA/148_1.453um_paw_HHT_R_1_3_tower1/148_1.453um_paw_HHT_R_1_3_tower1_0001/148_1453um_paw_HHT_R_1_3_tower1_0001_1_1_0000.nx")
update_dataset_info_flats_darks(di, "force-compute", darks_flats_dir="/tmp") # the reduced flats/darks have the machine_electric_current metadata
Note that nabu uses the functions from tomoscan to do the flats/darks reduction.
Possible fix(es)
no idea!
What versions of software are you using?
tomwer 1.2.6
Edited by Pierre Paleo