pathloss: "port" from Python2 to Python3

It's 2023 and it's safe to assume every gnuradio shipped these days
uses python3 as a python plug-in.  Luckily, only the raise statement
appears to need adjustment/porting
This commit is contained in:
Harald Welte 2023-07-02 12:29:30 +02:00
parent a83df24485
commit 1048003696
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def func_hata(envi, freq_mhz, dist_m, bts_ant_m, ms_ant_m):
environs = ('open_area', 'rural', 'suburban', 'city_small',
'city_medium', 'city_large')
if not envi in environs:
raise GnumericError,GnumericErrorVALUE
raise GnumericError(GnumericErrorVALUE)
# https://en.wikipedia.org/wiki/Hata_model_for_urban_areas
hata = hata_c0(freq_mhz) + hata_cf(freq_mhz) * math.log10(freq_mhz)