Skip to content

Commit

Permalink
Merge pull request #1444 from mfixstsci/update-output-pointing
Browse files Browse the repository at this point in the history
Update Path For Claw and Background Monitor
  • Loading branch information
BradleySappington authored Jan 24, 2024
2 parents b242db2 + 2af5108 commit 4b15feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwql/website/apps/jwql/monitor_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 4b15feb

Please sign in to comment.