Skip to content

Commit

Permalink
Copy annotations when creating model from base (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Fröhlich committed Jun 4, 2020
1 parent f003879 commit 4ebeee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pysb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,7 @@ def __init__(self, name=None, base=None, _export=True):
self.add_component(component)
component._do_export()
self.initials = model_copy.initials
self.annotations = model_copy.annotations

def __getstate__(self):
state = self.__dict__.copy()
Expand Down

0 comments on commit 4ebeee0

Please sign in to comment.