Commit af86d161 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Fix filename bugs

parent 65cf0b87
......@@ -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:.3f}MHz" + \
f"_{rate/1e6:.1f}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"] = {}
......
......@@ -55,8 +55,6 @@ if __name__ == "__main__":
f"_{float(args.rate)/1e6:.1f}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)]
......
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