+
�n�i] c �� � R t ^ RIt^ RIHu Ht ^ RIt^ RI t ^ RI
t^RIH
t
HtHt Rt]3R R llt]3R R llt ! R R 4 t ! R
R4 t ! R R
4 t ! R R4 t ! R R4 tR# )a* Unit tests for the orion_sdr Python extension.
Covers:
- Output shape and dtype for every demodulator and modulator
- Stateful behaviour (instances are independent)
- Input validation (wrong dtype, wrong ndim, non-contiguous)
- Setter methods (set_gain, set_deviation, set_sensitivity, set_clamp)
N)�FS�complex_tone� real_tonei c �D � V ^8� d QhR\ R\ P /# �� �n�return��int�np�ndarray)�formats "�p/Users/glenn/Library/Mobile Documents/com~apple~CloudDocs/work/rust/projects/orion-sdr/python/tests/test_unit.py�__annotate__r s � � +� +�� +�B�J�J� +� c �N � \ P ! V \ P R 7 # ���dtype)r �zeros� complex64�r s &r �iq_blockr s � �
�8�8�A�R�\�\�*�*r c �D � V ^8� d QhR\ R\ P /# r r )r
s "r r r s � � )� )�3� )�r�z�z� )r c �N � \ P ! V \ P R 7 # r )r r �float32r s &r �audio_blockr s � �
�8�8�A�R�Z�Z�(�(r c �D a � ] tR t^$t o R tR tR tR tR tR t Rt
V tR# ) �TestDemodOutputShapec �J � \ P ! \ R R4 P \ 4 4 p. q!P
p\ 3qCV8H qUqe'