DAQ: possible for this filter to affect self.sample_Spreadsheet otuside of funciton, atttempted to fix. needs testing

This commit is contained in:
2026-04-15 17:02:21 +02:00
parent c08377a308
commit 347aea4cb0
+4 -3
View File
@@ -1724,9 +1724,10 @@ class AareDAQ:
return self.__cfg.reference_tools
def sample_spreadsheet_user(self, pgroup: str) -> SampleShortInfoList:
sample = self.sample_spreadsheet
sample.s = list(filter(lambda x: x.user == pgroup, sample.s))
return sample
# sample = copy.deepcopy(self.sample_spreadsheet) #switch to copy if too heavy!
# sample.s = list(filter(lambda x: x.user == pgroup, sample.s))
# return sample
return SampleShortInfoList(s=[x for x in self.sample_spreadsheet.s if x.user == pgroup])
def get_auto_raster_params(self) -> SimpleScanParameters: