DAQ: possible for this filter to affect self.sample_Spreadsheet otuside of funciton, atttempted to fix. needs testing
This commit is contained in:
+4
-3
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user