Skip to content

Commit

Permalink
patched issue with specdata not being passed properly in identify
Browse files Browse the repository at this point in the history
  • Loading branch information
Adolfo1519 committed Jul 5, 2024
1 parent a2c6e5f commit ad7b51a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pypeit/core/gui/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
Expand Down
5 changes: 4 additions & 1 deletion pypeit/scripts/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ad7b51a

Please sign in to comment.