pixano.data.item.item_feature
FeatureValues(**data)
Bases: BaseModel
Feature available values, as a restricted list or open list
Attributes:
Name | Type | Description |
---|---|---|
restricted |
bool
|
restricted list or open list |
values |
list[str | int]
|
list of available values |
Raises ValidationError
if the input data cannot be
validated to form a valid model.
self
is explicitly positional-only to allow self
as a field name.
Source code in pydantic/main.py
FeaturesValues(**data)
Bases: BaseModel
Features availables values
Attributes:
Name | Type | Description |
---|---|---|
main |
dict[str, FeatureValues]
|
Scene features available values ("main" table) |
objects |
dict[str, FeatureValues]
|
Objects features available values |
Raises ValidationError
if the input data cannot be
validated to form a valid model.
self
is explicitly positional-only to allow self
as a field name.
Source code in pydantic/main.py
ItemFeature(**data)
Bases: BaseModel
Feature
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Feature name |
dtype |
str
|
Feature type |
value |
str | int | float | bool
|
Feature value |
Raises ValidationError
if the input data cannot be
validated to form a valid model.
self
is explicitly positional-only to allow self
as a field name.
Source code in pydantic/main.py
from_pyarrow(table, schema)
staticmethod
Create dictionary of ItemFeature from PyArrow Table
Parameters:
Name | Type | Description | Default |
---|---|---|---|
table
|
Table
|
PyArrow table |
required |
schema
|
schema
|
PyArrow schema |
required |
Returns:
Type | Description |
---|---|
dict[str, ItemFeature]
|
Dictionary of ItemFeature |