From 5aa2560c7c2619aa678726add76e150de5cbd6a2 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 7 Mar 2019 12:00:09 -0800 Subject: [PATCH] Changed extra_[to|from]_dict to session save/restore --- atrcopy/segments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atrcopy/segments.py b/atrcopy/segments.py index e64d496..eacb98b 100644 --- a/atrcopy/segments.py +++ b/atrcopy/segments.py @@ -553,7 +553,7 @@ class DefaultSegment: r = r.get_indexed[other.order] return r - def serialize_extra_to_dict(self, mdict): + def save_session(self, mdict): """Save extra metadata to a dict so that it can be serialized This is not saved by __getstate__ because child segments will point to @@ -573,7 +573,7 @@ class DefaultSegment: # pairs mdict["comments"] = self.get_sorted_comments() - def restore_extra_from_dict(self, e): + def restore_session(self, e): if 'comments' in e: for k, v in e['comments']: self.rawdata.extra.comments[k] = v