Skip to content

Commit

Permalink
model attributes - to conform with MDF
Browse files Browse the repository at this point in the history
added version, uri to Model() constructor and instance
  • Loading branch information
majensen committed Aug 25, 2024
1 parent 509687d commit 3fb6ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/src/bento_meta/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


class Model:
def __init__(self, handle=None, mdb=None):
def __init__(self, handle=None, version=None, uri=None, mdb=None):
"""
Model constructor.
Expand All @@ -45,6 +45,8 @@ def __init__(self, handle=None, mdb=None):
if not handle:
raise ArgError("model requires arg 'handle' set")
self.handle = handle
self.version = version
self.uri = uri
self._mdb = None
self.nodes = {}
self.edges = {} # keys are (edge.handle, src.handle, dst.handle) tuples
Expand Down

0 comments on commit 3fb6ac2

Please sign in to comment.