Skip to content

Improve error message for missing normalization keys in normalize()#1364

Closed
Pritika2512 wants to merge 2 commits into
weecology:mainfrom
Pritika2512:improve-normalize-error
Closed

Improve error message for missing normalization keys in normalize()#1364
Pritika2512 wants to merge 2 commits into
weecology:mainfrom
Pritika2512:improve-normalize-error

Conversation

@Pritika2512
Copy link
Copy Markdown

@Pritika2512 Pritika2512 commented Mar 29, 2026

Description

This PR improves the error message in the normalize() function when required keys are missing from the configuration.

Changes

  • Updated the error message to clearly indicate which keys (mean, std) are missing
  • Included the provided configuration (norm_cfg) in the error output for better debugging

Why this change?

The previous error message only listed missing keys, which could make debugging harder. Including the full configuration helps developers quickly identify issues in their input.

Impact

  • Improves developer experience
  • Makes debugging configuration errors easier
  • No breaking changes

@Pritika2512
Copy link
Copy Markdown
Author

Hi! This PR improves error clarity in normalize(). Happy to update if needed.

@henrykironde
Copy link
Copy Markdown
Contributor

These changes have been included in PR #1365.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants