Skip to content

_pearson_r_eff_p_value fails for single point pearson values #430

@Zeitsperre

Description

@Zeitsperre

Seeing this error downstream in climpred (pangeo-data/climpred#870).

nan_locs = np.where(np.isnan(r))

The fix is to make use of numpy.atleast_1d():

nan_locs = np.where(np.isnan(np.atleast_1d(r)))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions