fiftyone.operators.decorators#
FiftyOne operator decorators.
Functions:
|
|
|
Context manager that raises a |
|
|
|
Decorator that returns cached function results as long as no plugins have been modified since last time. |
|
- fiftyone.operators.decorators.coroutine_timeout(seconds)#
- fiftyone.operators.decorators.timeout(seconds: int)#
Context manager that raises a
TimeoutErrorif its body runs for longer than the given number of seconds.Must be entered from the main thread of the main interpreter, because it installs a
SIGALRMhandler andsignal.signal()raises aValueErrorin any other thread.- Parameters:
seconds – the timeout, in seconds
- fiftyone.operators.decorators.raise_timeout_error(seconds)#
- fiftyone.operators.decorators.plugins_cache(func)#
Decorator that returns cached function results as long as no plugins have been modified since last time.
- fiftyone.operators.decorators.dir_state(dirpath)#