From a2472761f4b85c08c0e1c5ee87e167f30d4718b1 Mon Sep 17 00:00:00 2001 From: imanjra Date: Fri, 24 May 2024 18:16:51 -0400 Subject: [PATCH 1/2] fix dataset group slice is not being used on launch_app --- fiftyone/core/session/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fiftyone/core/session/session.py b/fiftyone/core/session/session.py index 2a616229e1..e24d481b33 100644 --- a/fiftyone/core/session/session.py +++ b/fiftyone/core/session/session.py @@ -5,6 +5,7 @@ | `voxel51.com `_ | """ + from collections import defaultdict from dataclasses import asdict from functools import wraps @@ -417,6 +418,7 @@ def __init__( view_name=final_view_name, spaces=spaces, color_scheme=build_color_scheme(color_scheme, dataset, config), + group_slice=(dataset.group_slice if dataset else None), ) self._client = fosc.Client( address=address, From f1320213718a0009578ce3cde49a53a8ab7732db Mon Sep 17 00:00:00 2001 From: imanjra Date: Fri, 24 May 2024 18:27:50 -0400 Subject: [PATCH 2/2] remove unused import in session.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- fiftyone/core/session/session.py | 1 - 1 file changed, 1 deletion(-) diff --git a/fiftyone/core/session/session.py b/fiftyone/core/session/session.py index e24d481b33..e761300113 100644 --- a/fiftyone/core/session/session.py +++ b/fiftyone/core/session/session.py @@ -7,7 +7,6 @@ """ from collections import defaultdict -from dataclasses import asdict from functools import wraps try: