Scan state machine
Module testing feature introduced a regression in how to use scans. Now, one has to call scan()
, otherwise needed variables are not initialized. Also scan()
should be named start()
again...
Nevertheless, the scan state machine needed rework, to allow skipping of init methods etc.
The following was intended to work:
scan = Scan()
scan.init()
scan.configure()
scan.scan()
scan.analyze()
scan.close()
which should be the same as
with Scan() as scan:
scan.start()
That is not the case now.
Also, offline analysis does not work anymore (#340 (closed)):
scan = DigitalScan(scan_config=configuration)
scan.output_filename = '[a digital scan output file']
scan.analyze()
scan.close()
This simple example crashes due to undefined variables: Now fixed in development
.
with DigitalScan() as scan:
pass