Release v2.1.0
Changelog
- Added pickle support. The gravity evaluable can now be pickled to the persistent memory (including its internal cache)
- Fixed the error message that appears when numerical instabilities might occur
New Feature: Serialization of a GravityEvaluable
import polyhedral_gravity
import pickle
evaluable = polyhedral_gravity.GravityEvaluable((vertices, faces), DENSITY)
with open("evaluable.pk", "wb") as f:
pickle.dump(evaluable, f, pickle.HIGHEST_PROTOCOL)
with open("evaluable.pk", "rb") as f:
evaluable = pickle.load(f)
Full Changelog: v2.0.3...v2.1.0