fiftyone.core.odm.utils¶
Utilities for documents.
Functions:
|
Constructs the field keyword arguments dictionary for the given |
|
Infers the field keyword arguments dictionary for a field that can hold values of the given type. |
-
fiftyone.core.odm.utils.
get_field_kwargs
(field)¶ Constructs the field keyword arguments dictionary for the given
fiftyone.core.fields.Field
instance.- Parameters
field – a
fiftyone.core.fields.Field
custom (True) – include custom fields
- Returns
a field specification dict
-
fiftyone.core.odm.utils.
get_implied_field_kwargs
(value)¶ Infers the field keyword arguments dictionary for a field that can hold values of the given type.
- Parameters
value – a value
- Returns
a field specification dict