@classmethod
    def read(cls, handle):
        if not handle.attrs['type'] == b'sphere':
            raise ValueError("Source is not a SphericalSource")
        self = super(SphericalSource, cls).read(handle)
        self.position = (handle.attrs['x'], handle.attrs['y'], handle.attrs['z'])
        self.radius = handle.attrs['r']
        self.limb = str2bool(handle.attrs['limb'])

        # Read in spots
        for group in handle:
            if group in 'Spot':
                self._spots.append(SpotSource.read(handle[group]))

        return self
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/sources/source.py/SphericalSource.read/swapped operands of `in`