def focus_cb(self, viewer, channel):
        chname = channel.name

        if self.active != chname:
            if not self.channel in chname:
                self.add_channel(viewer, channel)
            widget = self.channel[chname].widget
            index = self.nb.index_of(widget)
            self.nb.set_index(index)
            self.active = chname
            self.info = self.channel[self.active]

        self.set_info(self.info, channel.fitsimage)
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/plugins/Info.py/Info.focus_cb/swapped operands of `in`