Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ugradio_code/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def package_files(package_dir,subdirectory):
'astropy>2',
'numpy',
#'barycorrpy',
'serial'],
'serial',
'scipy'],
'extras_require': {'sdr': ['pyrtlsdr']},
'version': '0.0.1',
#'package_data': {'ugradio': data_files},
'zip_safe': False,
Expand Down
7 changes: 6 additions & 1 deletion ugradio_code/src/sdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
to SDR dongles based on the RTL2832/R820T2 chipset.'''

from __future__ import print_function
from rtlsdr import RtlSdr
try:
from rtlsdr import RtlSdr
except AttributeError as e:
print(e)
print('Likely missing dependency librtlsdr')

import numpy as np

SAMPLE_RATE_TOLERANCE = 0.1 # Hz
Expand Down