def _getIndexProperty(self):
        prop = self
        def fget(self):
            return getattr(self, prop.name%'_%sIndex', slice(None))
        def fset(self, val):
            setattr(self, '_%sIndex'%prop.name, val)
        return property(fget=fget, fset=fset, doc=prop.doc)
dataset/ETHPy150Open simpeg/simpeg/SimPEG/PropMaps.py/Property._getIndexProperty/swapped operands of `%`