pylab_ml.common.common.check

check(msg, target, actual, tolerance=0, mask=None)[source]

Compare target with the acutal value.

msgTYPE

DESCRIPTION.

targetTYPE
the target value

if str and start with 0x than each X is a 4bit mask if str and start with 0b than each x is a 1bit mask

actualTYPE

the actual value.

tolerancefloat or integer, optional

DESCRIPTION. The default is 0.

mask : Integer or None(default)

errorbool

True : target = actual value False : target != actual value.