From ad7b51a710077affb50b49d4c5dae0d0ae3875dd Mon Sep 17 00:00:00 2001 From: Adolfo Carvalho Date: Fri, 5 Jul 2024 14:54:41 -0700 Subject: [PATCH] patched issue with specdata not being passed properly in identify --- pypeit/core/gui/identify.py | 2 +- pypeit/scripts/identify.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pypeit/core/gui/identify.py b/pypeit/core/gui/identify.py index 271abefdda..3d7e398cc0 100644 --- a/pypeit/core/gui/identify.py +++ b/pypeit/core/gui/identify.py @@ -782,7 +782,7 @@ def store_solution(self, final_fit, binspec, rmstol=0.15, if ans == 'y': # Arxiv solution # prompt the user to give the orders that were used here - if '"echelle": true' in wvcalib.strpar: + if wvcalib is not None and '"echelle": true' in wvcalib.strpar: while True: try: print('') diff --git a/pypeit/scripts/identify.py b/pypeit/scripts/identify.py index a8ca152dc6..f4548622ee 100644 --- a/pypeit/scripts/identify.py +++ b/pypeit/scripts/identify.py @@ -266,6 +266,9 @@ def main(args): if args.new_sol: wv_calib.copy_calib_internals(msarc) + # convert specdata into an array, since it's currently a list + specdata = np.array(specdata) + # If we just want the normal one-trace output else: arccen, arc_maskslit = wavecal.extract_arcs(slitIDs=[int(args.slits)]) @@ -317,7 +320,7 @@ def main(args): rmstol=args.rmstol, force_save=args.force_save, multi = args.multi, fits_dicts = fits_dicts, - specdata = np.array(specdata), + specdata = specdata, slits = slits, lines_pix_arr = lines_pix_arr, lines_wav_arr = lines_wav_arr,