cherab / solps

Other
6 stars 5 forks source link

Fix broken serialization of SOLPSSimulation and SOLPSMesh with pickle #54

Closed vsnever closed 2 years ago

vsnever commented 3 years ago

This solves #53 by fixing __getstate__ and __setstate__() methods SOLPSSimulation and SOLPSMesh.

This PR also adds load() class method to SOLPSSimulation and removes redundant load_solps_from_pickle() function.

vsnever commented 2 years ago

I've added the SOLPSSimulation serialization test so this PR is ready for review.