You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By any chance are you trying to deserialize an "older" pickle file. In #292 we introduced a breaking change that changed our serialization. We are trying to figure out a way to fix this for existing users. For the time being you'd have to install a version that does not contain the changes in #292 and onwards.
This adds two new functions `pysages.save` and `pysages.load` that handle serialize+write to and read+deserialize from a file, respectively.
If a file was pickled before #292, `pysages.load` tries to workaround the fact that previous sampling method classes didn't contain a `ncalls` field.
Closes#298
Issue: When unpickling harmonic bias results,
HarmonicBiasState
requiresncalls
butSamplingMethodMeta
fails to provide that parameter.Steps to reproduce: run a harmonic bias simulation and try to unpickle the results.
PySAGES version: 0.4.1.dev3+gcd6b0a9
The text was updated successfully, but these errors were encountered: