Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlink Bug Fix #1449

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions jwql/website/apps/jwql/monitor_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def background_monitor(request):
template = "background_monitor.html"

# Get the background trending filters to display
server_name = get_config()['outputs'].split("data/", 1)[1]
output_dir_bkg = static(os.path.join("data", server_name, "claw_monitor", "backgrounds"))
output_dir_bkg = static(os.path.join("outputs", "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,8 +158,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("data/", 1)[1]
output_dir_claws = static(os.path.join("data", server_name, "claw_monitor", "claw_stacks"))
output_dir_claws = static(os.path.join("outputs", "claw_monitor", "claw_stacks"))

claw_stacks = [os.path.join(output_dir_claws, filename) for filename in recent_files]

Expand Down
Loading