From 114378a03d5ff7ed51ef0e4dcad46567277662a0 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 23 Apr 2024 14:28:09 +0200 Subject: Updating LiveProcessingContext. --- src/argaze/ArFeatures.py | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index b77cd7f..cabac94 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -1693,44 +1693,18 @@ class ArContext(DataFeatures.PipelineStepObject): self._pause_event.clear() - class LiveProcessingContext(ArContext): """ Defines abstract live data processing context. """ - def calibrate(self): - """Launch device calibration process.""" - - raise NotImplementedError - - def calibration_status(self) -> str: - """Get device calibration status.""" - - raise NotImplementedError - - def start_recording(self): - """Start device data recording.""" - - raise NotImplementedError - - def stop_recording(self): - """Stop device data recording.""" - - raise NotImplementedError - - def pause_recording(self): - """Pause device data recording.""" - - raise NotImplementedError - - def cancel_recording(self): - """Cancel device data recording.""" + @DataFeatures.PipelineStepInit + def __init__(self, **kwargs): - raise NotImplementedError + super().__init__() - def recording_status(self) -> str: - """Get device recording status.""" + def calibrate(self): + """Launch device calibration process.""" raise NotImplementedError @@ -1769,8 +1743,7 @@ class PostProcessingContext(ArContext): Get pipeline image with post processing information. Parameters: - draw_times: draw pipeline execution times - draw_exceptions: draw pipeline exception messages + draw_progression: draw progress bar """ logging.debug('PostProcessingContext.image %s', self.name) -- cgit v1.1