when I try to unpickle raysect.optical.observer.SpectralPowerPipeline2D object, it raises
File ~/.local/lib/python3.10/site-packages/raysect/optical/observer/pipeline/spectral/power.pyx:390,
in raysect.optical.observer.pipeline.spectral.power.SpectralPowerPipeline2D.__setstate__()
TypeError: Expected tuple, got int
I've discussed that with @Mateasek, who thinks that this is caused by incompatibility of the __getstate__ and __setstate__ methods of that class. The following code raises the same error:
from raysect.optical.observer import SpectralPowerPipeline2D
pipeline = SpectralPowerPipeline2D()
pipeline.__setstate__(pipeline.__getstate__())
Hello,
when I try to unpickle
raysect.optical.observer.SpectralPowerPipeline2D
object, it raisesI've discussed that with @Mateasek, who thinks that this is caused by incompatibility of the
__getstate__
and__setstate__
methods of that class. The following code raises the same error:Raysect version: 0.8.0