Commit 899b78a2 authored by Thomas Telkamp's avatar Thomas Telkamp
Browse files

Merge branch 'main' of ssh://gitlab.camras.nl:777/dijkema/iq-recorder into main

parents 0af48666 b7cc43dd
......@@ -47,6 +47,9 @@ if __name__ == "__main__":
bool_args = [key for key, value in args_dict.items() if value == True and isinstance(value, bool)]
print("Running set_70cm_device.py B210")
subprocess.check_output(["set_70cm_device.py", "B210"])
arg_list = []
for key, value in args_dict.items():
if isinstance(value, bool):
......@@ -57,9 +60,9 @@ if __name__ == "__main__":
else:
arg_list += ["--" + key, str(value)]
print("Running ./usrp_to_file " + " ".join(arg_list))
print("Running usrp_to_file " + " ".join(arg_list))
try:
exit_code = subprocess.call(["./usrp_to_file"] + arg_list)
exit_code = subprocess.call(["usrp_to_file"] + arg_list)
except KeyboardInterrupt:
if os.path.isfile(args.file):
exit_code = 0
......@@ -70,3 +73,7 @@ if __name__ == "__main__":
raise RuntimeError("Exit code of usrp_to_file was " + exit_code)
sigmf_meta_filename = make_sigmf(args.file + ".metadata")
os.remove(args.file + ".metadata")
print("Created " + sigmf_meta_filename)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment