Skip to content

Commit 03c3027

Browse files
committed
Allow prp and f_offset to accept List types
Updated the Transmitter class to accept List types for the prp and f_offset parameters, increasing flexibility for input data formats.
1 parent 2bc6597 commit 03c3027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/radarsimpy/transmitter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def __init__( # pylint: disable=too-many-arguments, too-many-positional-argumen
217217
t: Union[float, List, NDArray],
218218
tx_power: float = 0,
219219
pulses: int = 1,
220-
prp: Optional[Union[float, NDArray]] = None,
221-
f_offset: Optional[Union[float, NDArray]] = None,
220+
prp: Optional[Union[float, List, NDArray]] = None,
221+
f_offset: Optional[Union[float, List, NDArray]] = None,
222222
pn_f: Optional[NDArray] = None,
223223
pn_power: Optional[NDArray] = None,
224224
channels: Optional[List[Dict]] = None,

0 commit comments

Comments
 (0)