-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update documents of schema (#67)
* docs: update documents of scheme Signed-off-by: ktro2828 <[email protected]> * chore: add warning Signed-off-by: ktro2828 <[email protected]> --------- Signed-off-by: ktro2828 <[email protected]>
- Loading branch information
Showing
16 changed files
with
142 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# `schema` | ||
|
||
- [Schema Names](./name.md) | ||
- [Schema Tables](./table.md) | ||
- [Other Items for Schema Tables](./table.md) | ||
- [Schema Registry](./registry.md) | ||
- [Serialize Schema](./serialize.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Under the hood, `t4-devkit` declares an enum called `SchemaName`. | ||
This enum includes names of each schema table that should be contained in the T4 dataset as `.json` file. | ||
|
||
Note that some schema tables are not mandatory, such as `object_ann.json` and `surface_ann.json`. | ||
For these tables, the method called `is_optional()` returns `True` and it is OK that these corresponding `.json` files are not contained in T4 dataset: | ||
|
||
```python | ||
from t4_devkit.schema import SchemaName | ||
|
||
>>> SchemaName.OBJECT_ANN.is_optional() | ||
True | ||
``` | ||
|
||
<!-- prettier-ignore-start --> | ||
|
||
::: t4_devkit.schema.name | ||
options: | ||
show_docstring_attributes: true | ||
show_bases: false | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Following classes are sub items composed of each schema tables. | ||
|
||
<!-- prettier-ignore-start --> | ||
|
||
## `SampleData` | ||
|
||
--- | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
members: ["FileFormat", "SensorModality", "VisibilityLevel", "RLEMask", "ShiftState", "IndicatorState", "Indicators", "AdditionalInfo"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
## `Sensor` | ||
|
||
--- | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
members: ["SensorModality"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
## `ObjectAnn`/`SurfaceAnn` | ||
|
||
--- | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
members: ["RLEMask"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
## `Visibility` | ||
|
||
--- | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
members: ["VisibilityLevel"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
## `VehicleState` | ||
|
||
--- | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
members: ["ShiftState", "IndicatorState", "Indicators", "AdditionalInfo"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Each schema table is registered in `SchemaRegistry` dynamically at the runtime. | ||
|
||
<!-- prettier-ignore-start --> | ||
|
||
::: t4_devkit.schema.builder | ||
|
||
::: t4_devkit.schema.tables.registry | ||
options: | ||
members: ["SCHEMAS", "SchemaRegistry"] | ||
show_root_toc_entry: false | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
You can serialize each schema table into `dict` using following functions. | ||
|
||
<!-- prettier-ignore-start --> | ||
|
||
::: t4_devkit.schema.serialize | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- prettier-ignore-start --> | ||
|
||
::: t4_devkit.schema.tables | ||
options: | ||
filters: ["!SchemaBase", "!FileFormat", "!SensorModality", "!VisibilityLevel", "!RLEMask", "!ShiftState", "!IndicatorState", "!Indicators", "!AdditionalInfo"] | ||
show_root_toc_entry: false | ||
merge_init_into_class: false | ||
show_signature_annotations: false | ||
show_docstring_attributes: true | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters