From ae4465eda71758e901ef6ec71cbf703c9f8c4624 Mon Sep 17 00:00:00 2001 From: Garrett Vanhoy Date: Tue, 2 May 2023 14:42:57 -0400 Subject: [PATCH] Fix estimate_filter_length --- torchsig/datasets/synthetic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchsig/datasets/synthetic.py b/torchsig/datasets/synthetic.py index 39b4318..dbfd21c 100644 --- a/torchsig/datasets/synthetic.py +++ b/torchsig/datasets/synthetic.py @@ -283,7 +283,7 @@ def _generate_samples(self, item: Tuple) -> np.ndarray: # estimate total filter length for pulse shape AdB = 72 # sidelobe attenuation level, 72 dB -> 12 bit dynamic range - pulse_shape_filter_length = estimate_filter_length(AdB,1,signal_description.excess_bandwidth) + pulse_shape_filter_length = DigitalModulationDataset.estimate_filter_length(AdB,1,signal_description.excess_bandwidth) pulse_shape_filter_span = int((pulse_shape_filter_length-1)/2) # convert filter length into the span self.pulse_shape_filter = self._rrc_taps(pulse_shape_filter_span, signal_description.excess_bandwidth) xp = cp if self.use_gpu else np