From 65f54fd02cf3e33d30ee1fbd511125bc4cb7e82b Mon Sep 17 00:00:00 2001 From: Michael Levy Date: Wed, 28 Jul 2021 16:51:36 -0400 Subject: [PATCH] Update dashboard.yaml 1. Include trend_map panel 2. Remove commented out lines (from storage_option) 3. Add sel_dict dropdown menus to most of the dashboard pages The last update causes some unwanted behavior -- see #52 for details, but basically it requires changing two dropdown menus when switching between a 2D and 3D variable (the variable dropdown, and then selecting appropriate z_t or z_t_150m value); it also leads to an empty frame when it first runs since the default values populating summary_map are Varname = CaCO3_FLUX_100m and Sel_dict = '{z_t: 35109.35}' when that specific variable is only plotted with sel_dict = {} --- notebooks/Interactive_Dashboard.ipynb | 17 +++++++++++++---- notebooks/dashboard.yaml | 13 ++++++++++--- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/notebooks/Interactive_Dashboard.ipynb b/notebooks/Interactive_Dashboard.ipynb index 819451e..ba0df35 100644 --- a/notebooks/Interactive_Dashboard.ipynb +++ b/notebooks/Interactive_Dashboard.ipynb @@ -615,6 +615,14 @@ "execution_count": 5, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/Users/mlevy/miniconda3/envs/hires-marbl/lib/python3.9/site-packages/panelify/dashboard.py:46: FutureWarning: Passing lists as key for xs is deprecated and will be removed in a future version. Pass key as a tuple instead.\n", + " return self.df.xs(key=list(values.values()), level=list(values.keys()))\n" + ] + }, { "data": {}, "metadata": {}, @@ -630,12 +638,12 @@ "\n", "\n", "\n", - "
\n", + "
\n", "\n", "