tomwer.gui.control.datawatcher.datawatcher.DataWatcherWidget#
- class tomwer.gui.control.datawatcher.datawatcher.DataWatcherWidget(parent=None)#
Widget used to display the on-going acquisitions and the finished one.
- Parameters:
parent – the parent widget
- DEFAULT_DIRECTORY = '/lbsram/data/visitor'#
- close(self) bool #
- controlWidget#
Widget containing the ‘control’ of the datawatcher: select folder, status …
- getConfigWindow()#
- getControlWindow()#
- getFilterLinuxFileNamePattern()#
- Return type:
str | None
- getHistoryWindow()#
- getObservationWidget()#
- informationReceived(info)#
- property mystatusBar#
- obsStatusToWidgetStatus = {'acquisition canceled': 'Failed', 'acquisition ended': 'Executed', 'failure': 'Failed', 'none found': 'Running', 'not processing': 'Not processed', 'started': 'Running', 'starting': 'Running', 'waiting for acquisition ending': 'Running'}#
- setFolderObserved(path)#
- setStartByOldest(b)#
Set if we want to start parsing files from the oldest or the newest
- Parameters:
b –
- sigFilterFileNamePatternChanged#
Signal emut when the filter pattern change
- sigFolderObservedChanged#
Signal emitted when the user change the observed folder
- sigObservationEnd#
Signal emitted when the observation end
- sigObservationStart#
Signal emitted when the observation starts
- sigScanReady#
Signal emitted when a scan is considered as ready
- sigTMStatusChanged#
Signal emitted when the state changed
- start()#
Start the thread of observation
- return bool:
True if the observation was started. Otherwise this mean that an observation was already running
- stop(sucess=False)#
Stop the thread of observation
- Parameters:
sucess – if True this mean that we are stopping the observation because we found an acquisition finished. In this case we don’t want to update the status and the log message.
- Return bool:
True if the observation have been stopped. Otherwise this mean that not observation was executing
- waitForObservationFinished()#