neuralset.events.study.SpecialLoader¶
- class neuralset.events.study.SpecialLoader(method: Callable[[...], Any], timeline: dict[str, Any], **kwargs: Any)[source][source]¶
Loader for special methods that need to be serialized and called later.
- Parameters:
Example
In
_load_timeline_events:loader = SpecialLoader(method=self._my_method, timeline=timeline, additional_param=...)
In the method:
def _my_method(self, timeline: dict[str, tp.Any], additional_param): ...