-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utils for supporting rerun panel plugin (#4876)
* add dynamic embedded document field type for rrd files * add schema utils to work with embedded doc type fields * add versioned renderer with url+metadata support * remove explicit version
- Loading branch information
1 parent
69a89e8
commit 97ccc02
Showing
5 changed files
with
141 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
Utilities for working with `Rerun <https://rerun.io/>`_. | ||
| Copyright 2017-2024, Voxel51, Inc. | ||
| `voxel51.com <https://voxel51.com/>`_ | ||
| | ||
""" | ||
|
||
import fiftyone.core.fields as fof | ||
import fiftyone.core.labels as fol | ||
from fiftyone.core.odm import DynamicEmbeddedDocument | ||
|
||
|
||
class RrdFile(DynamicEmbeddedDocument, fol._HasMedia): | ||
"""Class for storing a rerun data (rrd) file and its associated metadata. | ||
Args: | ||
filepath (None): the path to the rrd file | ||
version (None): the version of the rrd file | ||
""" | ||
|
||
_MEDIA_FIELD = "filepath" | ||
|
||
filepath = fof.StringField() | ||
version = fof.StringField() |