Skip to content

Commit 818f35a

Browse files
committed
access TraceSnapShot model as copy
1 parent 097ee40 commit 818f35a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

robotmbt/tracestate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,9 @@ class TraceSnapShot:
162162
def __init__(self, id, inserted_scenario, model_state, drought=0):
163163
self.id = id
164164
self.scenario = inserted_scenario
165-
self.model = model_state.copy()
165+
self._model = model_state.copy()
166166
self.coverage_drought = drought
167+
168+
@property
169+
def model(self):
170+
return self._model.copy()

0 commit comments

Comments
 (0)