graviti.portex.catalog_to_schema#

Functions converting TensorBay Catalog to Graviti Schema.

Module Contents#

Functions#

catalog_to_schema(catalog, data_sample, notes)

Convert the TensorBay Catalog to Graviti schema format.

graviti.portex.catalog_to_schema.catalog_to_schema(catalog, data_sample, notes)[source]#

Convert the TensorBay Catalog to Graviti schema format.

Parameters
  • catalog (tensorbay.label.Catalog) – The TensorBay Catalog of a dataset.

  • data_sample (tensorbay.dataset.RemoteData) – The data sample of the dataset.

  • notes (tensorbay.dataset.Notes) – The notes of the dataset.

Returns

The YAML string of the dataset schema.

Return type

Dict[str, Any]