File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# frequency", NOT "one process I can retune". For multiple frequencies use
1414# scan_frequencies (separate captures) or monitor_frequencies (sweep). True
1515# gapless retuning needs the C library.
16+ #
17+ #
18+ # Author(s): Lauren Linkous
19+ # Last Update: July 11, 2026
1620##--------------------------------------------------------------------\
1721
1822import numpy as np
Original file line number Diff line number Diff line change 55# Shared context manager that guarantees a live capture/sweep generator
66# is closed (and its child process reaped) on block exit, including on
77# exception or KeyboardInterrupt. Used by capture_stream and sweep_stream.
8+ #
9+ #
10+ # Author(s): Lauren Linkous
11+ # Last Update: July 11, 2026
812##--------------------------------------------------------------------\
913
1014
Original file line number Diff line number Diff line change 1414# instantiates HackRF once, calls the method, and maps typed exceptions to
1515# clean stderr + exit codes. All real work lives in core + mixins.
1616#
17- # Author(s): <you>
17+ # Author(s): Lauren Linkous
18+ # Last Update: July 11, 2026
1819##--------------------------------------------------------------------\
1920
2021import argparse
Original file line number Diff line number Diff line change 1616# state. Editing them changes what the library will accept/reject; it does
1717# not change anything on the board.
1818#
19- # Author(s): <you>
19+ #
20+ # Author(s): Lauren Linkous
21+ # Last Update: July 11, 2026
2022##--------------------------------------------------------------------\
2123
2224# ---- hard ranges (reject-by-default; --force / allow_out_of_spec downgrades
Original file line number Diff line number Diff line change 1414# (sweep CSV), or open-ended (rx until stopped). So _run takes a `mode`
1515# argument the way a serial wrapper takes a length flag.
1616#
17- # Author(s): <you>
17+ #
18+ # Author(s): Lauren Linkous
19+ # Last Update: July 11, 2026
1820##--------------------------------------------------------------------\
1921
2022import os
Original file line number Diff line number Diff line change 99# stderr with a clean exit code. Importing scripts get real, catchable
1010# exceptions instead of sentinel return values.
1111#
12- # Author(s): <you>
12+ #
13+ # Author(s): Lauren Linkous
14+ # Last Update: July 11, 2026
1315##--------------------------------------------------------------------\
1416
1517
Original file line number Diff line number Diff line change 1212# Built-ins can be extended/overridden from a user TOML
1313# (~/.config/hackrfpy/presets.toml) via load_presets().
1414#
15- # Author(s): <you>
15+ #
16+ # Author(s): Lauren Linkous
17+ # Last Update: July 11, 2026
1618##--------------------------------------------------------------------\
1719
1820import os
Original file line number Diff line number Diff line change 99# the SigMF core namespace; HackRF native format is interleaved signed 8-bit
1010# I/Q -> datatype "ci8".
1111#
12- # Author(s): <you>
12+ #
13+ # Author(s): Lauren Linkous
14+ # Last Update: July 11, 2026
1315##--------------------------------------------------------------------\
1416
1517import json
You can’t perform that action at this time.
0 commit comments