From 89192c26f48dec8cbb3eab372ceaa0825d1fc354 Mon Sep 17 00:00:00 2001 From: Eric Neilsen Date: Fri, 6 Oct 2023 14:30:30 -0700 Subject: [PATCH] Update notebook for recent changes --- notebooks/prenight.ipynb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/notebooks/prenight.ipynb b/notebooks/prenight.ipynb index e972f05a..b912eb75 100644 --- a/notebooks/prenight.ipynb +++ b/notebooks/prenight.ipynb @@ -198,6 +198,11 @@ " \"ignore\",\n", " module=\"rubin_sim\",\n", " message=\"All-NaN slice encountered\",\n", + ")\n", + "warnings.filterwarnings(\n", + " \"ignore\",\n", + " module=\"rubin_sim.scheduler.utils\",\n", + " message=\"invalid value encountered in cast\",\n", ")" ] }, @@ -626,13 +631,13 @@ }, "outputs": [], "source": [ - "pn_app, prenight = schedview.app.prenight.prenight_app(\n", + "prenight = schedview.app.prenight.Prenight()\n", + "pn_app = prenight.make_app(\n", " night_date,\n", " opsim_db=opsim_output_fname,\n", " scheduler=scheduler_fname,\n", " rewards=rewards_fname,\n", " custom_hvplot_tab_settings_file=custom_tabs_fname,\n", - " return_app=True,\n", ")" ] },