From 025a00c5153a5617b09da9d9cb89a0f3f04ef862 Mon Sep 17 00:00:00 2001 From: Dylan McReynolds Date: Wed, 17 Sep 2025 00:16:11 +0000 Subject: [PATCH 1/2] Update tiled viewer --- components/controls_calibration.py | 7 ++++++- requirements.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/controls_calibration.py b/components/controls_calibration.py index 751bac7..74b5155 100644 --- a/components/controls_calibration.py +++ b/components/controls_calibration.py @@ -18,9 +18,12 @@ def layout(): # TiledViewer component for scan selection tiled_viewer.TiledViewer( id='scan-selector', - tiledBaseUrl=f"{TILED_URI}/api/v1", + tiledBaseUrl=f"https://tiled.localhost/api/v1", isPopup=True, isButtonMode=True, + buttonModeText="Select Calibration Scan", + inButtonModeShowSelectedData=True + ), # Hidden input field to store the selected scan URI dmc.TextInput( @@ -51,6 +54,8 @@ def layout(): tiledBaseUrl=f"{TILED_URI}/api/v1", isPopup=True, isButtonMode=True, + buttonModeText="Select Mask", + inButtonModeShowSelectedData=True ), # Hidden input field to store the selected mask URI dmc.TextInput( diff --git a/requirements.txt b/requirements.txt index 2f783fb..91a2bcd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,4 +16,4 @@ tiled[all]==0.1.0a116 gunicorn typer dash-extensions==1.0.7 -tiled-viewer==0.0.7 +tiled-viewer==0.0.10 From b3f3b6d48d22ddaecb08ee0d7708ab5703d47ab5 Mon Sep 17 00:00:00 2001 From: Dylan McReynolds Date: Wed, 17 Sep 2025 13:40:34 -0700 Subject: [PATCH 2/2] fixed url of tiled component --- components/controls_calibration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/controls_calibration.py b/components/controls_calibration.py index 74b5155..f3e4799 100644 --- a/components/controls_calibration.py +++ b/components/controls_calibration.py @@ -18,7 +18,7 @@ def layout(): # TiledViewer component for scan selection tiled_viewer.TiledViewer( id='scan-selector', - tiledBaseUrl=f"https://tiled.localhost/api/v1", + tiledBaseUrl=f"{TILED_URI}/api/v1", isPopup=True, isButtonMode=True, buttonModeText="Select Calibration Scan",