def __init__(self,abf):
self.log = logging.getLogger("<STR_LIT>")<EOL>self.log.setLevel(swhlab.loglevel)<EOL>if abf in [None,False,'<STR_LIT>']:<EOL><INDENT>self.log.error("<STR_LIT>",str(abf))<EOL>return<EOL><DEDENT>if type(abf) is str:<EOL><INDENT>self.log.debug("<STR_LIT>")<EOL>abf=ABF(abf)<EOL><DEDENT>self.abf=abf<EOL>self.detect_over = <NUM_LIT:50> <EOL>self.detect_time1 = <NUM_LIT:0> <EOL>self.detect_time2 = abf.sweepLength <EOL>self.APs=False<EOL>
Load an ABF and get ready to do AP detection.
After detect(), all AP data is stored as a list of dicts in AP.APs