[wrtier] Remove extra ptsn_ links for timescan
For timescans, extra links ptsn_elapsed_time and ptsn_epoch will be removed. So for timescan (or loopscan, ct) you will have this Nexus file structure
/x.y/instrument/elapsed_time@NXpositioner
/x.y/instrument/epoch@NXpositioner
/x.y/instrument/positioners@NXcollection
/x.y/instrument/positioners/epoch
/x.y/instrument/positioners/elapsed_time
/x.y/measurement/epoch
/x.y/measurement/elapsed_time
And for scans that use a software timer (e.g. ascan)
/x.y/instrument/elapsed_time@NXdetector
/x.y/instrument/epoch@NXdetector
/x.y/measurement/epoch
/x.y/measurement/elapsed_time
@sole This is what we discussed some time ago. I should have done it faster, sorry.
@payno This will change the Nexus file.
@meyer @muzelle This will affect https://gitlab.esrf.fr/tomo/ebs-tomo/-/blob/master/tomo/TomoTools.py
You will need to change f'{self._musst_card.name}:{self.name}_{self._dest_name}'
to f'{self._musst_card.name}:{self._dest_name}'
and then do this
tomo.MusstConvDataCalc('elapsed_time',self.card,'timer_raw', data_per_point, data_per_line, self.card.get_timer_factor(), 'elapsed_time')
data_pos = tomo.MusstConvDataCalc(f"calc_{self.motor.name}",self.card,f'{self.motor.name}_raw', data_per_point, data_per_line, self.motor.steps_per_unit, f"calc_{self.motor.name}")
or remove MusstConvDataCalc.name
altogether. A source_name
and dest_name
is enough, no need for an extra name here (not used anywhere).
Edited by Wout De Nolf