Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
IQ Recorder
Commits
810ba072
Commit
810ba072
authored
Jun 06, 2022
by
Tammo Jan Dijkema
Browse files
Handle underscores
parent
db0743b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
record.py
View file @
810ba072
...
...
@@ -54,11 +54,11 @@ if __name__ == "__main__":
for
key
,
value
in
args_dict
.
items
():
if
isinstance
(
value
,
bool
):
if
value
==
True
:
arg_list
+=
[
"--"
+
key
]
arg_list
+=
[
"--"
+
key
.
replace
(
'_'
,
'-'
)
]
elif
value
==
""
or
value
is
None
:
continue
else
:
arg_list
+=
[
"--"
+
key
,
str
(
value
)]
arg_list
+=
[
"--"
+
key
.
replace
(
'_'
,
'-'
)
,
str
(
value
)]
print
(
"Running usrp_to_file "
+
" "
.
join
(
arg_list
))
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment