Skip to content

Commit

Permalink
Use floor (more explicit)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuizSerra authored Oct 12, 2021
1 parent 809ef10 commit 7d46fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self,
:param d:
:param delay:
"""
self.ns = 2 * int(0.5 * sampling_freq * sweep_time)
self.ns = np.floor(sampling_freq * sweep_time).astype(np.int)
self.dt = 1.0 / sampling_freq
self.sampling_freq = sampling_freq
self.img_width = img_width
Expand Down

0 comments on commit 7d46fef

Please sign in to comment.