Skip to content

fix: dead negative-frequency check, message typos, stray prints - #1338

Open
EnvDroneSense wants to merge 4 commits into
CLIMADA-project:developfrom
EnvDroneSense:fix/small-fixes-317
Open

EnvDroneSense wants to merge 4 commits into
CLIMADA-project:developfrom
EnvDroneSense:fix/small-fixes-317

Conversation

@EnvDroneSense

Copy link
Copy Markdown

Changes proposed in this PR:

  • apply_climate_scenario_knu: any(tc_cc.frequency) < 0 compared a bool with 0 and never triggered. It is now np.any(tc_cc.frequency < 0), so negative frequencies raise the intended ValueError. Test added. Results on IBTrACS 1980-2020 do not change (80 scenario combinations, none negative).
  • Add missing spaces in 51 messages (e.g. "deprecated.Use") and two missing f prefixes (litpop.py, storm_europe.py).
  • Remove three debug print calls (calibration_opt.py, impact_data.py).

This PR fixes part of #317 (the negative-frequency check).

PR Author Checklist

PR Reviewer Checklist

Comment thread climada/entity/entity_def.py Outdated
Comment thread CHANGELOG.md Outdated

@spjuhel spjuhel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for these fixes 🙏

I'd say in the future avoid putting two many different fix types in the same PR (e.g. the typos and the stray prints could have been separated from the dead check).

This is good to merge for me @emanuel-schmid, @peanutfun, @chahank

EnvDroneSense and others added 2 commits October 23, 2026 10:05
Co-authored-by: Samuel Juhel <10011382+spjuhel@users.noreply.github.com>
Co-authored-by: Samuel Juhel <10011382+spjuhel@users.noreply.github.com>
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