-
-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
TRIAGENeeds triagingNeeds triaging
Description
Is was trying to understand what the memoize option to holoviews.streams.Pipe does, but contrary to what the docstring says this option seems unused (unless the is some metaclass magic that I cannot see):
holoviews/holoviews/streams.py
Lines 514 to 540 in 0541eae
| class Pipe(Stream): | |
| """A Stream used to pipe arbitrary data to a callback. | |
| Unlike other streams memoization can be disabled for a | |
| Pipe stream (and is disabled by default). | |
| """ | |
| data = param.Parameter(default=None, constant=True, doc=""" | |
| Arbitrary data being streamed to a DynamicMap callback.""") | |
| def __init__(self, data=None, memoize=False, **params): | |
| super().__init__(data=data, **params) | |
| self._memoize_counter = 0 | |
| def send(self, data): | |
| """A convenience method to send an event with data without | |
| supplying a keyword. | |
| """ | |
| self.event(data=data) | |
| def _on_trigger(self): | |
| self._memoize_counter += 1 | |
| @property | |
| def hashkey(self): | |
| return {'_memoize_key': self._memoize_counter} |
Is this intentional or a bug?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TRIAGENeeds triagingNeeds triaging