Skip to content

Commit

Permalink
evaluation files code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaniruddha committed Dec 13, 2024
1 parent 8bc5a32 commit b346c58
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dlg-code/wallaby_hires.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Start date: 10/04/24
Description: All functions neeeded for WALLABY hires pipeline
Description: All functions neeeded for the WALLABY hires pipeline to process the HIPASS sources
"""

# Importing all the required libraries
Expand Down Expand Up @@ -960,7 +960,13 @@ def download_evaluation_files(filename, project_code, credentials_path):
# Step 1: Create sbid_visibility_dict
sbid_visibility_dict = {}
res = tap_query_filename_visibility(filename)
sbid_visibility_dict = {}

obs_id_list = list(res['obs_id'])
obs_id_list = [str(item) for item in obs_id_list]

visibility_list = list(res['filename'])
visibility_list = [str(item) for item in visibility_list]

for obs_id, visibility in zip(obs_id_list, visibility_list):
sbid_visibility_dict.setdefault(obs_id, []).append(visibility)

Expand Down

0 comments on commit b346c58

Please sign in to comment.