paudetseis / RfPy

Teleseismic receiver function calculation and post-processing
https://paudetseis.github.io/RfPy/
MIT License
39 stars 28 forks source link

rfpy_plot fails due to np.float deprecation in numpy #39

Open LevCarlo opened 1 year ago

LevCarlo commented 1 year ago

https://github.com/paudetseis/RfPy/blob/905e1a98eead64295ae3e4d76eb2867c2eca049e/rfpy/binning.py#L117

Hi Pascal, np.float was deprecated in NumPy ≥1.20 and this will result in the weight not being calculated correctly when stacking receiver functions into (baz or slow) bins. This should also be one of the reasons why the rfpy_plot doesn't work.

for tr in rf_tmp[0]: IndexError: list index out of range