@@ -749,6 +751,7 @@ class CorrectionScan(ID26Measurement):
last_index=self._main_scan.get_current_index()
else:
nbpts=last_index-first_index+1
print(f'number of points is ',nbpts)
# check all params defined
ifxes_main_maxisNone:
...
...
@@ -787,16 +790,15 @@ class CorrectionScan(ID26Measurement):
exceptValueError:
print(f'{mot_counters[1].name} probably is already in the ACTIVE_MG')
self._radiation_damage=RadiationDamagePreset(xmot,ymot,self._position_manager,self._current_sample)# this makes the cc RD independent of the main scan RD
# back to the starting index
iffirst_index==-1:# if sample not run yet
self.goto_index(len(self._main_scan._radiation_damage.pm._positions[self._current_sample])-1)# go to the last point of the pattern so that the next position is the first one
else:
self.goto_index(first_index)
print(f'1st index in the corrections scan {self.get_current_index()}')
print(f'1st index in the correction scan {self.get_current_index()}')