def getBatchcodes(batchCodeTable):
return batchCodeTable['Batch'].dropna().unique()
def getBatchcodeOptions(batchcodes):
return [''] + _getBatchcodeOptions(batchcodes)
def _getBatchcodeOptions(batchcodes):
return [_getBatchcodeOption(batchcode) for batchcode in batchcodes]
def _getBatchcodeOption(batchcode):
return ''.format(batchcode=batchcode)