From 762b3d1e64c451780cda6f4c7eeae2c6ed2e8ca1 Mon Sep 17 00:00:00 2001 From: Mees Fix Date: Wed, 24 Jan 2024 11:23:41 -0500 Subject: [PATCH] Updating path for claw and background monitor --- jwql/website/apps/jwql/monitor_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jwql/website/apps/jwql/monitor_views.py b/jwql/website/apps/jwql/monitor_views.py index 5b8607ac1..16013ed16 100644 --- a/jwql/website/apps/jwql/monitor_views.py +++ b/jwql/website/apps/jwql/monitor_views.py @@ -71,7 +71,7 @@ def background_monitor(request): template = "background_monitor.html" # Get the background trending filters to display - server_name = get_config()['outputs'].split("outputs/", 1)[1] + server_name = get_config()['outputs'].split("data/", 1)[1] output_dir_bkg = static(os.path.join("outputs", server_name, "claw_monitor", "backgrounds")) fltrs = ['F070W', 'F090W', 'F115W', 'F150W', 'F200W', 'F277W', 'F356W', 'F444W'] bkg_plots = [os.path.join(output_dir_bkg, '{}_backgrounds.png'.format(fltr)) for fltr in fltrs] @@ -159,7 +159,7 @@ def claw_monitor(request): df = pd.DataFrame(query, columns=['expstart_mjd', 'skyflat_filename']) recent_files = list(pd.unique(df['skyflat_filename'][df['expstart_mjd'] > Time.now().mjd - 10])) - server_name = get_config()['outputs'].split("outputs/", 1)[1] + server_name = get_config()['outputs'].split("data/", 1)[1] output_dir_claws = static(os.path.join("outputs", server_name, "claw_monitor", "claw_stacks")) claw_stacks = [os.path.join(output_dir_claws, filename) for filename in recent_files]