Skip to content

Commit

Permalink
remove more unused functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jun 26, 2024
1 parent a58a9d5 commit 2649cf8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions gamutrf/sigwindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,3 @@ def freq_excluded(freq, freq_exclusions):
if freq >= freq_min:
return True
return False


def calc_db(df, rolling_factor=ROLLING_FACTOR):
df.replace([np.inf, -np.inf], np.nan, inplace=True)
meandb = df["db"].mean()
if rolling_factor:
df["db"] = df["db"].rolling(rolling_factor).mean().fillna(meandb)
return df


def get_center(signal_mhz, freq_start_mhz, bin_mhz, record_bw):
return int(
int((signal_mhz - freq_start_mhz) / record_bw) * bin_mhz + freq_start_mhz
)

0 comments on commit 2649cf8

Please sign in to comment.