Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions t4_devkit/schema/tables/sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class SampleData(SchemaBase):
prev (str): Foreign key pointing the sample_data that precedes this in time.
Empty if start of scene.
is_valid (bool): True if this data is valid, else False. Invalid data should be ignored.
info_filename (str): Relative path to metainfo data-blob on disk.

Shortcuts:
---------
Expand All @@ -103,6 +104,9 @@ class SampleData(SchemaBase):
next: str = field(validator=validators.instance_of(str)) # noqa: A003
prev: str = field(validator=validators.instance_of(str))
is_valid: bool = field(default=True, validator=validators.instance_of(bool))
info_filename: str | None = field(
default=None, validator=validators.optional(validators.instance_of(str))
)

# shortcuts
modality: SensorModality | None = field(init=False, default=None)
Expand Down
1 change: 1 addition & 0 deletions tests/schema/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def sample_data_dict() -> dict:
"ego_pose_token": "d6779d73ac9c5a1f3f372aa182bc8158",
"calibrated_sensor_token": "0c434d5a27ef0404331549435b9861e4",
"filename": "data/camera/0.jpg",
"info_filename": "",
"fileformat": "jpg",
"width": 1440,
"height": 1080,
Expand Down
Loading