cli #15

Merged
madrigal merged 28 commits from cli into main 2025-12-22 10:42:57 -05:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 35a87131c2 - Show all commits

View File

@ -85,7 +85,7 @@ class RaisedCosineFilter(PulseShapingFilter):
""" """
t_symbol = self.upsampling_factor t_symbol = self.upsampling_factor
beta = self.beta beta = self.beta
with np.errstate(divide='ignore', invalid='ignore'): with np.errstate(divide="ignore", invalid="ignore"):
f_val = ( f_val = (
1 1
/ t_symbol / t_symbol

View File

@ -86,7 +86,7 @@ class RootRaisedCosineFilter(PulseShapingFilter):
alpha = 4 * beta * t / t_symbol alpha = 4 * beta * t / t_symbol
t[t == 0] = 1e9 t[t == 0] = 1e9
with np.errstate(divide='ignore', invalid='ignore'): with np.errstate(divide="ignore", invalid="ignore"):
f_val = (np.sin(np.pi * t / t_symbol * (1 - beta)) + alpha * np.cos(np.pi * t / t_symbol * (1 + beta))) / ( f_val = (np.sin(np.pi * t / t_symbol * (1 - beta)) + alpha * np.cos(np.pi * t / t_symbol * (1 + beta))) / (
np.pi * t * (1 - alpha**2) np.pi * t * (1 - alpha**2)
) )