From 52c04252b04d4ca5eb038d624f8265c70cb866c9 Mon Sep 17 00:00:00 2001 From: Debora Pelliccia Date: Tue, 16 Apr 2024 13:29:29 -1000 Subject: [PATCH] fix manual extraction for mosaic --- pypeit/manual_extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypeit/manual_extract.py b/pypeit/manual_extract.py index ee5d2cb472..8c601011d5 100644 --- a/pypeit/manual_extract.py +++ b/pypeit/manual_extract.py @@ -85,7 +85,7 @@ def by_fitstbl_input(cls, frame: str, inp: str, spectrograph): m_es = inp.split(';') for m_e in m_es: parse = m_e.split(':') - # det_strip will be a list of a single number (no mosaic) or 2 numbers (mosaic) + # det_strip will be a list of a single number (no mosaic) or >= 2 numbers (mosaic) det_strip = [int(d) for d in parse[0].strip('()').split(',')] # check if it's negative object (i.e., if the det number is negative) if np.all([item < 0 for item in det_strip]): @@ -93,7 +93,7 @@ def by_fitstbl_input(cls, frame: str, inp: str, spectrograph): det_strip = [item * -1 for item in det_strip] else: idict['neg'] += [False] - if len(det_strip) == 2 and tuple(det_strip) in spectrograph.allowed_mosaics: + if len(det_strip) >= 2 and tuple(det_strip) in spectrograph.allowed_mosaics: # we use detname, which is a string (e.g., 'DET01', 'MSC01') idict['detname'] += [spectrograph.get_det_name(tuple(det_strip))] elif len(det_strip) == 1: