diff --git a/pypeit/specobjs.py b/pypeit/specobjs.py index 1cbbb11f92..56f4a47348 100644 --- a/pypeit/specobjs.py +++ b/pypeit/specobjs.py @@ -378,7 +378,7 @@ def slitorder_indices(self, slitorder): int: """ if self[0].PYPELINE == 'Echelle': - indx = self.ECH_ORDERINDX == slitorder + indx = self.ECH_ORDER == slitorder elif self[0].PYPELINE == 'MultiSlit': indx = self.SLITID == slitorder elif self[0].PYPELINE == 'IFU':