Skip to content

Verification fixes - #572

Open
pulkkins wants to merge 7 commits into
masterfrom
verification_fixes
Open

Verification fixes#572
pulkkins wants to merge 7 commits into
masterfrom
verification_fixes

Conversation

@pulkkins

Copy link
Copy Markdown
Member

This branch introduces fixes to the documentation of the verification and utils modules:

  • utils.spectral.rapsd: Set fft_method=np.fft by default to avoid confusion of the input type. With fft_method=None the method previously assumed that the input is already Fourier-transformed, which is not the most common use case.
  • verification.probscores / ROC curves: Explicitly specify the order of the x- and y-coordinates in the ROC curve object.
  • verification.probscores / reliability diagrams: Expand the documentation of the methods.
  • Miscellaneous fixes to coding and docstring style in the above modules

@pulkkins
pulkkins requested review from dnerini and ladc August 17, 2026 10:14
@pulkkins pulkkins self-assigned this Aug 17, 2026

@dnerini dnerini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Seppo, thanks a lot for the nice contribution. I found only one issue that is causing the tests to fail.

Comment thread pysteps/utils/spectral.py

def rapsd(
field, fft_method=None, return_freq=False, d=1.0, normalize=False, **fft_kwargs
field, fft_method=np.fft, return_freq=False, d=1.0, normalize=False, **fft_kwargs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like change this broke some logic elsewhere, see failing tests.

e.g. now fftgenerators.py#L150 should include fft_method=None, if I'm not wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants