@@ -34,11 +34,8 @@ def wrapper(*args, **kwargs):
3434 print (f'ids: { ids } ' )
3535 print (f'ids1: { ids1 } ' )
3636 print (f'locals: { dd .keys ()} ' )
37-
3837 dat = ids [0 :len (dd )]
3938 print (dat )
40-
41-
4239 logger .debug ('calling %s%s' % (f .__name__ , ids ))
4340 for i in range (n ):
4441 if len (f .__dict__ ) > 0 :
@@ -142,6 +139,9 @@ def readbin(contents, filenames, varType='Conc.', featureType='analyte|standard'
142139 varType is desired variable in data file (typically 'Conc.' or 'Response')
143140 featureType is desired feature information in regex with ignore case flag (e.g. 'analyte' or 'analyte|cal')
144141 '''
142+ # import pickle
143+ # pickle.dump([contents, filenames, varType, featureType, sil], open('/Users/tk/PycharmProjects/convtar/check.pi', 'wb'))
144+ # contents, filenames, varType, featureType, sil = pickle.load(open('/Users/tk/PycharmProjects/convtar/check.pi', 'rb'))
145145
146146 dfs = {'data' : [], 'fn' : []}
147147 for c , f in zip (contents , filenames ):
@@ -161,7 +161,10 @@ def readbin(contents, filenames, varType='Conc.', featureType='analyte|standard'
161161
162162 # remove QCs and internal standards
163163 # print(ds['Sample Text'].value_counts())
164- ds = ds [ds .Type .str .contains (featureType , regex = True , flags = re .IGNORECASE )]
164+ try :
165+ ds = ds [ds .Type .str .contains (featureType , regex = True , flags = re .IGNORECASE )]
166+ except :
167+ pass
165168 # print(ds.Type.str.contains(featureType, regex=True, flags=re.IGNORECASE).value_counts())
166169 # print(ds[ds.Type.str.contains(featureType, regex=True, flags=re.IGNORECASE)])
167170 # print(ds[ds.Type.str.contains(featureType, regex=True, flags=re.IGNORECASE)].iloc[0].T)
0 commit comments