Skip to content

Commit

Permalink
alphabetizing
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed May 8, 2024
1 parent cf47563 commit 8263d7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions docs/source/user_guide/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,9 @@ The FiftyOne App can be configured in the ways described below:
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
| `loop_videos` | `FIFTYONE_APP_LOOP_VIDEOS` | `False` | Whether to loop videos by default in the expanded sample view. |
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
| `media_fallback` | `FIFTYONE_APP_MEDIA_FALLBACK` | `False` | Whether to fall back to the default media field (`"filepath"`) when the configured media |
| | | | field's value for a sample is not defined. |
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
| `multicolor_keypoints` | `FIFTYONE_APP_MULTICOLOR_KEYPOINTS` | `False` | Whether to independently coloy keypoint points by their index |
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
| `notebook_height` | `FIFTYONE_APP_NOTEBOOK_HEIGHT` | `800` | The height of App instances displayed in notebook cells. |
Expand Down Expand Up @@ -713,9 +716,6 @@ The FiftyOne App can be configured in the ways described below:
| `plugins` | N/A | `{}` | A dict of plugin configurations. See :ref:`this section <configuring-plugins>` for |
| | | | details. |
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
| `media_fallback` | `FIFTYONE_APP_MEDIA_FALLBACK` | `False` | Whether to fall back to the default media field (`"filepath"`) when the configured media |
| | | | field's value for a sample is not defined. |
+---------------------------+----------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------+
Viewing your App config
-----------------------
Expand Down Expand Up @@ -759,6 +759,7 @@ You can print your App config at any time via the Python library and the CLI:
"grid_zoom": 5,
"lightning_threshold": null,
"loop_videos": false,
"media_fallback": false
"multicolor_keypoints": false,
"notebook_height": 800,
"proxy_url": None,
Expand All @@ -771,7 +772,6 @@ You can print your App config at any time via the Python library and the CLI:
"theme": "browser",
"use_frame_number": false,
"plugins": {},
"media_fallback": false
}
True
Expand Down Expand Up @@ -809,6 +809,7 @@ You can print your App config at any time via the Python library and the CLI:
"grid_zoom": 5,
"lightning_threshold": null,
"loop_videos": false,
"media_fallback": false
"multicolor_keypoints": false,
"notebook_height": 800,
"proxy_url": None,
Expand All @@ -821,7 +822,6 @@ You can print your App config at any time via the Python library and the CLI:
"theme": "browser",
"use_frame_number": false,
"plugins": {},
"media_fallback": false
}
True
Expand Down
8 changes: 4 additions & 4 deletions fiftyone/core/odm/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ class DatasetAppConfig(EmbeddedDocument):
serve media in the App's grid view
modal_media_field ("filepath"): the default sample field from which to
serve media in the App's modal view
media_fallback (False): whether to fall back to the default media field
(``"filepath"``) when the alternate media field value for a sample
is not defined
sidebar_mode (None): an optional default mode for the App sidebar.
Supported values are ``("fast", "all", "best", "disabled")``
sidebar_groups (None): an optional list of
Expand All @@ -387,9 +390,6 @@ class DatasetAppConfig(EmbeddedDocument):
- ``"point-cloud"``: See the
:ref:`3D visualizer docs <app-3d-visualizer-config>` for
supported options
media_fallback (False): whether to fall back to the default media field
(``"filepath"``) when the alternate media field value for a sample
is not defined
"""

# strict=False lets this class ignore unknown fields from other versions
Expand All @@ -398,13 +398,13 @@ class DatasetAppConfig(EmbeddedDocument):
media_fields = ListField(StringField(), default=["filepath"])
grid_media_field = StringField(default="filepath")
modal_media_field = StringField(default="filepath")
media_fallback = BooleanField(default=False)
sidebar_mode = StringField(default=None)
sidebar_groups = ListField(
EmbeddedDocumentField(SidebarGroupDocument), default=None
)
color_scheme = EmbeddedDocumentField(ColorScheme, default=None)
plugins = DictField()
media_fallback = BooleanField(default=False)

@staticmethod
def default_sidebar_groups(sample_collection):
Expand Down

0 comments on commit 8263d7c

Please sign in to comment.