verbose=False)) elif (con.get_by_label(label.upper() if len(label) <= 2 else label, 'samples', verbose=True) == -1): con.add_sample( label.upper() if len(label) <= 2 else label, description= 'This sample was created automatically to match a data file added through Python. Please fill in the appropriate information.' ) sampleIds.append( con.get_by_label( label.upper() if len(label) <= 2 else label, 'samples', verbose=False)) else: sampleIds.append( con.get_by_label( label.upper() if len(label) <= 2 else label, 'samples', verbose=False)) con.add_data(f[:-4], os.path.join(dirpath, f), samples=sampleIds, data_type=test_type, date_created=date) con.disconnect()