Skip to content

Commit ff4ba60

Browse files
committed
Appending milliseconds to filenames
1 parent a8eabf4 commit ff4ba60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/receiver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def set_center_freq(self, center_freq, rf_center_freq):
5353
file_name = "/dev/null"
5454
else:
5555
# Otherwise use frequency and time stamp for file name
56-
tstamp = "_" + str(int(time.time()))
56+
# tstamp = "_" + str(int(time.time()))
57+
tstamp = "_" + str.replace(str("%.3f" % time.time()),".","")
5758
file_freq = (rf_center_freq + self.center_freq)/1E6
5859
file_freq = np.round(file_freq, 3)
5960
file_name = 'wav/' + '{:.3f}'.format(file_freq) + tstamp + ".wav"

0 commit comments

Comments
 (0)