Skip to content

Commit 1c16359

Browse files
committed
Made _process_data docstring more explicit.
1 parent 0c98ba9 commit 1c16359

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

microscope/devices.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,10 @@ def _fetch_data(self):
495495
def _process_data(self, data):
496496
"""Do any data processing and return data.
497497
498-
Subclasses should call super()._process_data(data) after doing their
499-
own processing."""
498+
Subclasses should add their processing to self.pipeline in preference
499+
to overriding this method. Anything that overrides this method must
500+
call super()_process_data(data) either before or after its own
501+
processing."""
500502
import functools
501503
return functools.reduce(lambda x, f: f(x), self.pipeline, data)
502504

0 commit comments

Comments
 (0)