Skip to content

Commit

Permalink
Added NO_NAME in name of header files if there are only flats and darks
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanholstein committed Jan 23, 2021
1 parent 5019f3d commit 52a660d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irdap/irdap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6376,11 +6376,11 @@ def create_overview_headers_main(path_main_dir):
else:
# Define the base of the name of each file to be generated
headers = [pyfits.getheader(x) for x in path_raw_files]
target_name = ''
target_name = 'NO_NAME'
n_files = len(headers)
i = 0

while target_name == '' and i < n_files:
while target_name == 'NO_NAME' and i < n_files:
header_sel = headers[i]
try:
target_name = header_sel['ESO OBS TARG NAME']
Expand Down

0 comments on commit 52a660d

Please sign in to comment.