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
af86d161
Commit
af86d161
authored
Jun 01, 2022
by
Tammo Jan Dijkema
Browse files
Fix filename bugs
parent
65cf0b87
Changes
2
Hide whitespace changes
Inline
Side-by-side
make_sigmf.py
View file @
af86d161
...
...
@@ -27,12 +27,7 @@ def make_sigmf(metadatafilename, no_rename=False):
rx_gain
=
float
(
rx_gain
)
time_first_sample
=
Time
(
float
(
time_first_sample
),
format
=
"unix"
)
newfilename
=
metadatafilename
.
rstrip
(
".metadata"
).
rstrip
(
".iq"
)
+
"_"
+
\
f
"
{
frequency
/
1e6
:
.
3
f
}
MHz"
+
\
f
"_
{
rate
/
1e6
:
.
1
f
}
Msps"
+
\
"_"
+
datatype
+
\
".sigmf-data"
sigmfname_meta
=
newfilename
.
replace
(
"sigmf-data"
,
"sigmf-meta"
)
sigmfname_meta
=
metadatafilename
.
rstrip
(
".metadata"
).
rstrip
(
"sigmf-data"
)
+
"sigmf-meta"
meta
=
{}
meta
[
"global"
]
=
{}
...
...
record.py
View file @
af86d161
...
...
@@ -55,8 +55,6 @@ if __name__ == "__main__":
f
"_
{
float
(
args
.
rate
)
/
1e6
:
.
1
f
}
Msps"
+
\
f
"_
{
datatype
}
.sigmf-data"
print
(
args
.
file
)
1
/
0
args_dict
=
vars
(
args
)
bool_args
=
[
key
for
key
,
value
in
args_dict
.
items
()
if
value
==
True
and
isinstance
(
value
,
bool
)]
...
...
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