Skip to content

Commit

Permalink
fully remove assert code
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Gow committed Nov 5, 2024
1 parent 4054510 commit bb556d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions waveform_benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ def compute_snr(reference_signal, output_signal):
reference_signal = np.asarray(reference_signal)
output_signal = np.asarray(output_signal)

# Check that the signals have the same dimensions and all finite values.
np.array_equal(np.shape(reference_signal), np.shape(output_signal))
np.all(np.isfinite(reference_signal)) and np.all(np.isfinite(output_signal))

# Compute the noise in the signal.
noise_signal = output_signal - reference_signal

Expand Down

0 comments on commit bb556d1

Please sign in to comment.