Skip to content

Commit 24f3e85

Browse files
rogersamsoenekomartinmartinez
authored andcommitted
avoids changing the state of the argument
1 parent 49785ac commit 24f3e85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pysd/py_backend/output.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def __init__(self, model, capture_elements, out_file=None):
4444
# want them to run (DataFrameHandler runs first)
4545
self.handler = DataFrameHandler(DatasetHandler(None)).handle(out_file)
4646

47-
capture_elements.append("time")
48-
self.capture_elements = capture_elements
47+
self.capture_elements = capture_elements + ["time"]
4948

5049
self.initialize(model)
5150

0 commit comments

Comments
 (0)