Skip to content

Release v2.1.0

Compare
Choose a tag to compare
@schuhmaj schuhmaj released this 31 Aug 19:03
· 185 commits to main since this release
5edd00c

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