- Added method: Added
Pyghthouse.waitas a new feature to synchronize with the frame building. Commenly used to ensure building a frame with the previous call ofPyghthouse.set_image - Added method: Added
Pyghthouse.keep_runningas a new feature to keep the main thread alive. Useable to let callback functions run until keyboard interrupt - Error handeling:
PyghthouseCanvas.set_imagewill now throw more useful errors upon invalid image object
- start ... stop:
Pyghthouse.stopnow does the same asPyghthouse.close. For consistency, we recommend to use the start ... stop pattern for the Pyghthouse routine. - main thread check: The pyghthouse routine will now stop when the main thread has died. To keep the pyghthouse routine running, use
Pyghthouse.keep_running - Wait for start:
Pyghthouse.startwill now wait until the start sequence is completed
- Removed dependency: numpy has been removed as dependency to simplify the image structure
- Redundant method:
Pyghthouse.connectwas only intended for internal use and is now combined inPyghthouse.start - Redundant behaviour: signal handler and corresponding method
Pyghthouse._handle_sigintis now replaced by the main thread check inPHThread - Unsupported method:
- removed
Pyghthouse.get_image_raw - removed
Pyghthouse.empty_image_raw
- removed
- Keyboard interrupt: keyboard interrupt should now stop the whole program instead of only the main thread
- Missing warning:
VerbosityLevel.ALLnow prints all messages, instead of only messages with number 200 - Error handeling: upon error inside the library, the Pyghthouse routine will now close properly
- Fixed image mutations: added locks for critical sections in
PyghthouseCanvasto prevent rare image mutations. - Fixed connection deadlock: added timeout to avoid deadlocks upon unexpected connection behaviour
- Added documentation
- Changed data structure: Changed data structure of
PyghthouseCanvasfrom a 3D numpy array to a 3D python list - Better maintainability: Changed overall code structure to allow easier access to single code pieces
- Changed internal package structure:
- moved
PHThreadto the new script_thread.py - moved
PHMessageHandlerinto the new scripthandler.py - moved
REIDinto the new scriptdata.pyand renamed fromREIDtoReID - moved
VerbosityLevelinto the new scriptdata.py
- moved