Skip to content

Commit

Permalink
CHG: tracemessage maxlen to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
fumitoh committed Aug 18, 2024
1 parent 3480b73 commit 247ad58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modelx/core/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,11 @@ def rollback(self):
break

def tracemessage(self, maxlen=6):
"""
""" Not Used?
if maxlen > 0, the message is shortened to maxlen traces.
"""
assert False # TODO: This method is not used. Deleted in future version.

result = ""
for i, value in enumerate(self):
result += "{0}: {1}\n".format(i, get_node_repr(value))
Expand Down Expand Up @@ -393,7 +395,7 @@ def get_traceback(self, show_locals):
else:
return [(ItemNode(frame[0]), frame[1]) for frame in self]

def tracemessage(self, maxlen=6):
def tracemessage(self, maxlen=20):
"""
if maxlen > 0, the message is shortened to maxlen traces.
"""
Expand Down

0 comments on commit 247ad58

Please sign in to comment.