aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-04-23 14:28:09 +0200
committerThéo de la Hogue2024-04-23 14:28:09 +0200
commit114378a03d5ff7ed51ef0e4dcad46567277662a0 (patch)
tree3f15ea20fd7f40bfec745cdea69fa526883027cc
parenta5ec37a490523e26e568490afb52aa7d19f9a256 (diff)
downloadargaze-114378a03d5ff7ed51ef0e4dcad46567277662a0.zip
argaze-114378a03d5ff7ed51ef0e4dcad46567277662a0.tar.gz
argaze-114378a03d5ff7ed51ef0e4dcad46567277662a0.tar.bz2
argaze-114378a03d5ff7ed51ef0e4dcad46567277662a0.tar.xz
Updating LiveProcessingContext.
-rw-r--r--src/argaze/ArFeatures.py39
1 files 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)