From f0ae5f880c3307697891ca6653f88ce19ffd9214 Mon Sep 17 00:00:00 2001 From: Juri Date: Fri, 23 Jun 2023 15:05:41 +0200 Subject: [PATCH] ENH: Make node IDs list static --- dashboard/callbacks.py | 25 ------------------------- dashboard/components/node_select.py | 2 +- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/dashboard/callbacks.py b/dashboard/callbacks.py index 457b07d..e3ea318 100644 --- a/dashboard/callbacks.py +++ b/dashboard/callbacks.py @@ -276,31 +276,6 @@ def update_installation_selector(refresh): """ return BigQuery().get_installations() - @app.callback( - [ - Output("node-select", "options"), - Output("node-select", "value"), - ], - [ - Input("installation-select", "value"), - ], - ) - @cache.memoize(timeout=cache_timeout) - def update_node_selector(installation_reference): - """Update the node selector options with the IDs of the nodes available for the given installation. - - :param str installation_reference: - :return list(str): - """ - nodes = BigQuery().get_nodes(installation_reference) - - try: - first_option = nodes[0] - except IndexError: - first_option = None - - return nodes, first_option - @app.callback( Output("sensor-coordinates-select", "options"), Input("sensor-coordinates-check-button", "n_clicks"), diff --git a/dashboard/components/node_select.py b/dashboard/components/node_select.py index 33a21f0..016ba97 100644 --- a/dashboard/components/node_select.py +++ b/dashboard/components/node_select.py @@ -3,7 +3,7 @@ def NodeSelect(): return dcc.Dropdown( - options=["0"], + options=["1", "2", "3", "4", "5"], id="node-select", persistence=True, ) diff --git a/pyproject.toml b/pyproject.toml index 7891b78..38f4793 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "aerosense-dashboard" -version = "0.6.1" +version = "0.6.2" description = "High-level visualisation for aerosense" authors = ["Tom Clark", "Marcus Lugg", "Yuriy Marykovsky"] license = "BSD-3"