Skip to content

Commit 3251b61

Browse files
committed
header template update examples
1 parent ac8d4ca commit 3251b61

11 files changed

Lines changed: 44 additions & 0 deletions

‎hackrfpy/examples/benchmark.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
# uv run python examples/benchmark.py
2222
# uv run python examples/benchmark.py --rate 20e6 --seconds 3
2323
# uv run python examples/benchmark.py --tools-dir "C:\hackrf-tools-windows"
24+
#
25+
#
26+
# Author(s): Lauren Linkous
27+
# Last Update: July 11, 2026
2428
##--------------------------------------------------------------------\
2529
import argparse
2630
import sys

‎hackrfpy/examples/calibrate.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# uv run python examples/calibrate.py --ref-freq 100e6 --ref-dbm -30
2929
# Then use the printed offset:
3030
# h.relative_power_db(iq, offset_db=<printed offset>)
31+
#
32+
#
33+
# Author(s): Lauren Linkous
34+
# Last Update: July 11, 2026
3135
##--------------------------------------------------------------------\
3236
import argparse
3337
import json

‎hackrfpy/examples/capture_to_file.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
# recording parameters. Neither needs a device or a HackRF() instance,
77
# so any downstream consumer can use them standalone.
88
# Built ON TOP of the library; not required by it.
9+
#
10+
#
11+
# Author(s): Lauren Linkous
12+
# Last Update: July 11, 2026
913
##--------------------------------------------------------------------\
1014
import numpy as np
1115
from hackrfpy import HackRF, load_iq, read_sigmf_meta

‎hackrfpy/examples/collect_sample_data.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# uv run python examples/collect_sample_data.py --seconds 1.0 --sample-rate 4e6
2929
#
3030
# (Use `uv run` so the project environment with numpy is used.)
31+
#
32+
#
33+
# Author(s): Lauren Linkous
34+
# Last Update: July 11, 2026
3135
##--------------------------------------------------------------------\
3236

3337
import argparse

‎hackrfpy/examples/device_explorer.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# firmware + capabilities + any device warnings. Read-only. This is the
66
# HackRF analog of a serial-port autodetect -- it confirms the device is
77
# present and usable before you build anything on top of it.
8+
#
9+
#
10+
# Author(s): Lauren Linkous
11+
# Last Update: July 11, 2026
812
##--------------------------------------------------------------------\
913
import sys
1014
from hackrfpy import HackRF

‎hackrfpy/examples/persistent_capture.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
# Usage:
1919
# uv run python examples/waterfall_persistent.py --freq 100e6 --rate 8e6
2020
# uv run python examples/waterfall_persistent.py --freq 2437e6 --rate 10e6
21+
#
22+
#
23+
# Author(s): Lauren Linkous
24+
# Last Update: July 11, 2026
2125
##--------------------------------------------------------------------\
2226
import argparse
2327
import sys

‎hackrfpy/examples/power_meter.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# Usage:
1010
# uv run python examples/power_meter.py --freq 100e6
1111
# uv run python examples/power_meter.py --freq 433.92e6 --rate 2e6
12+
#
13+
#
14+
# Author(s): Lauren Linkous
15+
# Last Update: July 11, 2026
1216
##--------------------------------------------------------------------\
1317
import argparse
1418
import sys

‎hackrfpy/examples/scan_then_capture.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# hackrfpy 'examples/scan_then_capture.py'
44
# Pipeline the class can express that CLI-only tools can't: sweep a band,
55
# find the strongest bin, then capture at that frequency.
6+
#
7+
#
8+
# Author(s): Lauren Linkous
9+
# Last Update: July 11, 2026
610
##--------------------------------------------------------------------\
711
import numpy as np
812
from hackrfpy import HackRF

‎hackrfpy/examples/sweep_collect.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
##--------------------------------------------------------------------\
33
# hackrfpy 'examples/sweep_collect.py'
44
# Collect one sweep across a band and save the bin powers to CSV.
5+
#
6+
#
7+
# Author(s): Lauren Linkous
8+
# Last Update: July 11, 2026
59
##--------------------------------------------------------------------\
610
import csv
711
from hackrfpy import HackRF

‎hackrfpy/examples/waterfall_persistent.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#
1818
# Usage:
1919
# uv run python examples/waterfall_persistent.py --freq 100e6 --rate 8e6
20+
#
21+
#
22+
# Author(s): Lauren Linkous
23+
# Last Update: July 11, 2026
2024
##--------------------------------------------------------------------\
2125
import argparse
2226
import sys

0 commit comments

Comments
 (0)