gwhat icon indicating copy to clipboard operation
gwhat copied to clipboard

Error when trying to calculate the BRF if no barometric pressure are available

Open jnsebgosselin opened this issue 2 years ago • 0 comments

Description

Try to compute BRF on a dataset with not barometric pressure data.

System Info

GWHAT 0.5.0 Python 3.8.10 64-bit Qt 5.15.2 PyQt5 5.15.6 Windows 10

Traceback

Traceback (most recent call last):
  File "C:\Users\jean-\Documents\Projets\gwhat\gwhat\brf_mod\kgs_gui.py", line 605, in calc_brf
    bp = np.interp(tc, time[indx], bp[indx])
  File "<__array_function__ internals>", line 5, in interp
  File "C:\Python\Python38\lib\site-packages\numpy\lib\function_base.py", line 1439, in interp
    return interp_func(x, xp, fp, left, right)
ValueError: array of sample points is empty

jnsebgosselin avatar Mar 10 '22 14:03 jnsebgosselin