Skip to content

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

Open
@LevCarlo

Description

@LevCarlo

weight = np.real(abs(weight/np.float(nb)))

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions