mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-23 00:22:28 +00:00
9f6a6f5ecd
* Added conversion plugins (API might change!) * Added conversion to the analysis pipeline * Changed behaviour of --default-plugins (it adds conversion plugins regardless) * Added emotionModel [sic] and emotionConversion models //TODO add conversion tests //TODO add conversion to docs
12 lines
287 B
Python
12 lines
287 B
Python
from senpy.plugins import SenpyPlugin
|
|
from time import sleep
|
|
|
|
|
|
class SleepPlugin(SenpyPlugin):
|
|
def activate(self, *args, **kwargs):
|
|
sleep(self.timeout)
|
|
|
|
def analyse_entry(self, entry, params):
|
|
sleep(float(params.get("timeout", self.timeout)))
|
|
yield entry
|