Skip to content

Commit

Permalink
add node attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
toruseo committed Aug 19, 2024
1 parent 8255501 commit 6253db4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uxsim/uxsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Node:
"""
Node in a network.
"""
def __init__(s, W, name, x, y, signal=[0], signal_offset=0, flow_capacity=None, auto_rename=False, number_of_lanes=None):
def __init__(s, W, name, x, y, signal=[0], signal_offset=0, flow_capacity=None, auto_rename=False, number_of_lanes=None, attribute=None):
"""
Create a node
Expand All @@ -47,6 +47,8 @@ def __init__(s, W, name, x, y, signal=[0], signal_offset=0, flow_capacity=None,
Whether to automatically rename the node if the name is already used. Default is False.
number_of_lanes : int, optional
The number of lanes that can be green simultaniously at the node. Default is None.
attribute : any, optional
Additional (meta) attributes defined by users.
Attributes
----------
Expand Down

0 comments on commit 6253db4

Please sign in to comment.