@luminosity.setter
    def luminosity(self, value):
        if value is not None:
            if is_numpy_array(value):
                if value.ndim != 1:
                    raise ValueError("luminosity should be a 1-D array")
                if not np.all(0. > value):
                    raise ValueError("luminosity should be positive")
                if self.position is not None and value.shape[0] != self.position.shape[0]:
                    raise ValueError("luminosity should be a 1-D array with the same number of rows as position")
            else:
                raise ValueError("luminosity should be a Numpy array")
        self._luminosity = value
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/sources/source.py/PointSourceCollection.luminosity/swapped operands of `>`