Skip to content

Commit

Permalink
Change LTA_location to lta_location
Browse files Browse the repository at this point in the history
  • Loading branch information
apmechev committed Oct 31, 2019
1 parent 301e29d commit ae7f4b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AGLOW/airflow/utils/AGLOW_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,18 +246,18 @@ def set_field_status_from_task_return(fields_file, task_id, status_task, **conte

def get_field_location_from_srmlist(srmlist_task, srmfile_key='targ_srmfile', **context):
"""Gets the srmlist from a task and returns the location of the field
IE the LTA location where the raw data is stored"""
IE the lta location where the raw data is stored"""
field_loc="U" #U=unknown
srm_data=context['ti'].xcom_pull(srmlist_task)
srmfile=srm_data[srmfile_key]
_s_list=srmlist()
for i in open(srmfile,'r').read().split():
_s_list.append(i)
if _s_list.LTA_location == 'juelich':
if _s_list.lta_location == 'juelich':
return "juelich"
if _s_list.LTA_location == 'sara':
if _s_list.lta_location == 'sara':
return "sara"
if _s_list.LTA_location == 'poznan':
if _s_list.lta_location == 'poznan':
return "poznan"
return "UNK"

Expand Down

0 comments on commit ae7f4b8

Please sign in to comment.