diff --git a/src/molearn/analysis/analyser.py b/src/molearn/analysis/analyser.py index 4ca560e..839f03f 100644 --- a/src/molearn/analysis/analyser.py +++ b/src/molearn/analysis/analyser.py @@ -466,3 +466,7 @@ def generate(self, crd): return s*self.stdval + self.meanval + + def __getstate__(self): + return {key:value for key, value in dict(self.__dict__).items() if key not in ['dope_score_class', 'ramachandran_score_class']} + diff --git a/src/molearn/scoring/dope_score.py b/src/molearn/scoring/dope_score.py index 21f6737..c7a665f 100644 --- a/src/molearn/scoring/dope_score.py +++ b/src/molearn/scoring/dope_score.py @@ -78,7 +78,12 @@ def get_dope(self, frame, refine=False): if i+1