File: adjust_gui_helpers.py

package info (click to toggle)
gr-dab 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,272 kB
  • sloc: python: 14,976; cpp: 6,738; ansic: 547; makefile: 19; sh: 11
file content (11 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

import channel_mapping

def get_number_of_channels():
  return len(channel_mapping.table)

def id_to_frequency(i):
  frequency_mhz = float(channel_mapping.table[int(i)]['frequency'])
  print(frequency_mhz)
  return frequency_mhz*1e6