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

Prevent overwriting datafile with metadata

parent e3bfa471
......@@ -40,7 +40,7 @@ def make_sigmf(metadatafilename, no_rename=False):
rx_gain = float(rx_gain)
time_first_sample = Time(float(time_first_sample), format="unix")
sigmfname_meta = metadatafilename.replace(".metadata", "").replace(".sigmf-data", ".sigmf-meta")
sigmfname_meta = metadatafilename.replace(".metadata", "").replace(".sigmf-data", "") + ".sigmf-meta"
meta = {}
meta["global"] = {}
......
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