Skip to content

Commit

Permalink
Merge pull request #244 from johschmitz/signal_length
Browse files Browse the repository at this point in the history
Fix partially missing length parameter for signal objects
  • Loading branch information
atingber authored Oct 1, 2024
2 parents df49b42 + b96f236 commit 787d0bc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scenariogeneration/xodr/signals_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def __init__(
roll,
width,
height,
length,
):
"""initalizes common attributes for Signal and Object
Expand Down Expand Up @@ -122,7 +123,9 @@ def __init__(
width (float): width of the Signal / Object
height (float): height of Signal / Object
height (float): height of the Signal / Object
length (float): length of the Signal / Object
"""
super().__init__()
Expand All @@ -138,6 +141,7 @@ def __init__(
self.pitch = pitch
self.roll = roll
self.width = width
self.length = length
self.id = id

def __eq__(self, other):
Expand Down Expand Up @@ -246,6 +250,8 @@ class Signal(_SignalObjectBase):
height (float): height of Signal (init in base class)
length (float): length of the Signal (init in base class)
validity (Validity): explicit validity information for a signal (optional)
Methods
Expand Down Expand Up @@ -281,6 +287,7 @@ def __init__(
roll=0,
height=None,
width=None,
length=None,
):
"""initalizes the Signal
Expand Down Expand Up @@ -322,6 +329,8 @@ def __init__(
Default: None
height (float): height of Signal (init in base class)
Default: None
length (float): length of the Signal (init in base class)
Default: None
"""

Expand All @@ -340,6 +349,7 @@ def __init__(
roll,
width,
height,
length,
)
self.s = s
self.t = t
Expand Down Expand Up @@ -764,6 +774,7 @@ def __init__(
roll,
width,
height,
length,
)

# attributes that differ from signals
Expand Down

0 comments on commit 787d0bc

Please sign in to comment.