We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c98ba9 commit 1c16359Copy full SHA for 1c16359
microscope/devices.py
@@ -495,8 +495,10 @@ def _fetch_data(self):
495
def _process_data(self, data):
496
"""Do any data processing and return data.
497
498
- Subclasses should call super()._process_data(data) after doing their
499
- own processing."""
+ Subclasses should add their processing to self.pipeline in preference
+ to overriding this method. Anything that overrides this method must
500
+ call super()_process_data(data) either before or after its own
501
+ processing."""
502
import functools
503
return functools.reduce(lambda x, f: f(x), self.pipeline, data)
504
0 commit comments