superexacttestpy.tl.decode

superexacttestpy.tl.decode(barcode, name)

Decode a barcode

Parameters:
barcode : str

Barcode to decode

name : list

List of names of the sets

Returns:

  • res_pres (list) – List of sets in which the barcode is present

  • res_abs (list) – List of sets in which the barcode is not present

Examples

>>> decode("011",["Set1","Set2","Set3"])
... (['Set2', 'Set3'], ['Set1'])