Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better defaults. #1049

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 5 additions & 4 deletions gamutrf/offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ def main():
and k != "filename"
and k not in DYNAMIC_EXCLUDE_OPTIONS
}
for override_dir in ("inference_output_dir", "sample_dir"):
override_val = getattr(options, override_dir)
if not override_val:
override_val = out_dir
scan_args[override_dir] = override_val
scan_args.update(
{
"iqtlabs": iqtlabs,
"freq_end": 0,
"freq_start": freq_start,
"inference_output_dir": getattr(
options, "inference_output_dir", out_dir
),
"pretune": True,
"samp_rate": int(meta["sample_rate"]),
"sample_dir": getattr(options, "sample_dir", out_dir),
"sdr": "file:" + filename,
}
)
Expand Down
4 changes: 2 additions & 2 deletions gamutrf/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def argument_parser():
"--rotate_secs",
dest="rotate_secs",
type=int,
default=300,
default=0,
help="rotate storage directories every N seconds",
)
parser.add_argument(
Expand Down Expand Up @@ -351,7 +351,7 @@ def argument_parser():
parser.add_argument(
"--mqtt_server",
help="MQTT server to report RSSI",
default="mqtt",
default="",
type=str,
)
parser.add_argument(
Expand Down
Loading