From d08d4ad4c36a2d535ad8b32783c6c1f260305223 Mon Sep 17 00:00:00 2001 From: Lynne Jones Date: Fri, 8 Nov 2024 21:29:35 -0800 Subject: [PATCH] zeropoint in columns, default to altitude if no quicklook --- nightly/ConsDB_visits_metadata.ipynb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nightly/ConsDB_visits_metadata.ipynb b/nightly/ConsDB_visits_metadata.ipynb index c988093..e77940a 100644 --- a/nightly/ConsDB_visits_metadata.ipynb +++ b/nightly/ConsDB_visits_metadata.ipynb @@ -9,8 +9,9 @@ "source": [ "# This cell is only for setting example parameter defaults - gets replaced by sidecar.\n", "day_obs_min = \"2024-10-24\"\n", - "#day_obs_max = \"2024-10-31\"\n", + "day_obs_min = \"2024-11-06\"\n", "day_obs_max = \"Today\"\n", + "day_obs_max = \"2024-11-06\"\n", "#instrument = \"latiss\" \n", "instrument = \"lsstcomcam\"" ] @@ -366,8 +367,11 @@ " visits['filter'] = visits['band']\n", " if 'visit_id' in visits.columns:\n", " visits.drop('visit_id', axis=1, inplace=True)\n", - " \n", - " fig = schedview.plot.plot_visit_param_vs_time(visits, 'psf_sigma_median', show_column_selector=True, hovertool=False)\n", + " visits['zero_point_median'] = visits['zero_point_median'].values.astype(float)\n", + " col = 'psf_sigma_median'\n", + " if len(quicklook) == 0:\n", + " col = 'altitude'\n", + " fig = schedview.plot.plot_visit_param_vs_time(visits, col, show_column_selector=True, hovertool=False)\n", " bokeh.io.show(fig)\n", "else:\n", " print(\"No visits\")"