def __getitem__(self, key):
        element = key.split('.')[0]
        # Convert self.name into 'all'
        if key.split('.')[-1] == self.name:
            key = element + '.all'
        if self.keys() in key:  # Look for data on self...
            return super(GenericPhysics, self).__getitem__(key)
        else:  # ...Then check Network
            return self._phases[0][key][self._phases[0][element + '.' + self.name]]
dataset/ETHPy150Open PMEAL/OpenPNM/OpenPNM/Physics/__GenericPhysics__.py/GenericPhysics.__getitem__/swapped operands of `in`