Skip to content

Commit

Permalink
Merge pull request #1446 from mfixstsci/update-claw-paths
Browse files Browse the repository at this point in the history
Update Path for Claws and Background
  • Loading branch information
mfixstsci authored Jan 24, 2024
2 parents 4b15feb + 5b3b2ee commit 1ce2932
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 @@ -72,7 +72,7 @@ def background_monitor(request):

# Get the background trending filters to display
server_name = get_config()['outputs'].split("data/", 1)[1]
output_dir_bkg = static(os.path.join("outputs", server_name, "claw_monitor", "backgrounds"))
output_dir_bkg = static(os.path.join("data", 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 @@ -160,7 +160,7 @@ def claw_monitor(request):
recent_files = list(pd.unique(df['skyflat_filename'][df['expstart_mjd'] > Time.now().mjd - 10]))

server_name = get_config()['outputs'].split("data/", 1)[1]
output_dir_claws = static(os.path.join("outputs", server_name, "claw_monitor", "claw_stacks"))
output_dir_claws = static(os.path.join("data", 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 1ce2932

Please sign in to comment.