fiftyone.core.frame_utils#
Frame utilities.
Functions:
|
Determines whether the provided value is a frame number. |
|
Validates that the provided value is a frame number. |
Exceptions:
Exception raised when an invalid frame number is encountered. |
- fiftyone.core.frame_utils.is_frame_number(value)#
Determines whether the provided value is a frame number.
Frame numbers are strictly positive integers.
- Parameters:
value – a value
- Returns:
True/False
- Raises:
FrameError – if
value
is an integer but is not strictly positive
- fiftyone.core.frame_utils.validate_frame_number(value)#
Validates that the provided value is a frame number.
Frame numbers are strictly positive integers.
- Parameters:
value – a value
- Raises:
FrameError – if
value
is not a frame number
- exception fiftyone.core.frame_utils.FrameError#
Bases:
Exception
Exception raised when an invalid frame number is encountered.
Methods:
Exception.add_note(note) -- add a note to the exception
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
Attributes:
- add_note()#
Exception.add_note(note) – add a note to the exception
- args#
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.