Skip to content

bugfix-for-issue#851 #896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stingray/simulator/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def simple_ir(self, start=0, width=1000, intensity=1):
h_zeros = np.zeros(int(start / self.dt))

# Define constant impulse response
h_ones = np.ones(int(width / self.dt)) * intensity
num_bins = max(int(width / self.dt), 1) # Ensure at least 1 bin
h_ones = np.ones(num_bins) * intensity

return np.append(h_zeros, h_ones)

Expand Down