This Pull Request (PR) introduces several changes to the PRBS (Pseudo-Random Binary Sequence) function within the project. Here's a summary of the updates:
del: delete generate_prbs function from utils.py module
Remove the generate_prbs function from the utils.py module.
breaking: PRBS function no longer accepts n and user arguments.
Remove the user argument from the PRBS function, suggesting it can be passed directly to DAC() or binary_sequence.
Rename the n parameter to len and limit the output length of the LFSR.
Use np.ndarray instead of ndarray.
feat: Add error handling for len parameter in PRBS function
Introduce error handling for the len parameter in the PRBS function.
Raise a new exception if len is not an integer.
Fix len to 2**order-1 if it exceeds this value.
Add exception raises to docstring.
tests: Add test for PRBS function in module devices_test.py
Add test cases for the PRBS function in the devices_test.py module.
This Pull Request (PR) introduces several changes to the PRBS (Pseudo-Random Binary Sequence) function within the project. Here's a summary of the updates:
del: delete generate_prbs function from utils.py module
generate_prbs
function from theutils.py
module.breaking: PRBS function no longer accepts n and user arguments.
user
argument from the PRBS function, suggesting it can be passed directly toDAC()
orbinary_sequence
.n
parameter tolen
and limit the output length of the LFSR.np.ndarray
instead ofndarray
.feat: Add error handling for len parameter in PRBS function
len
parameter in the PRBS function.len
is not an integer.len
to2**order-1
if it exceeds this value.tests: Add test for PRBS function in module devices_test.py
devices_test.py
module.