Commit 9fbb90f6 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Remove unused argument, save channel as int

parent ad013bee
......@@ -27,7 +27,7 @@ def dataformat_to_str(dataformat):
return datatype
def make_sigmf(metadatafilename, no_rename=False):
def make_sigmf(metadatafilename):
# time_first_sample, rate, frequency, rx_gain, bandwidth, reference, time_source, format, channel, antenna, sdr_type
with open(metadatafilename, "r") as metadatafile:
......@@ -148,7 +148,7 @@ def make_sigmf(metadatafilename, no_rename=False):
global_meta["camras:usrp:reference"] = reference.strip('"')
global_meta["camras:usrp:time_source"] = time_source.strip('"')
global_meta["camras:usrp:antenna"] = antenna.strip('"')
global_meta["camras:usrp:channel"] = channel
global_meta["camras:usrp:channel"] = channel.strip('"')
with open(sigmfname_meta, "w") as sigmfmeta:
json.dump(meta, sigmfmeta, indent=4)
......@@ -169,12 +169,7 @@ if __name__ == "__main__":
"metadata CSV and a connection to the telescope console")
type=lambda x: is_valid_file(parser, x))
help="Dry-run: do not rename files, just write the metadata",
args = parser.parse_args()
make_sigmf(args.metadatafile, no_rename=args.no_rename)
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