Skip to content

Conversation

@ghalter
Copy link

@ghalter ghalter commented Dec 1, 2023

#819

This PR fixes #819

PR Author Checklist

PR Reviewer Checklist

@ghalter ghalter changed the title This PR fixes #819 in the yearsets, which causes Climada to fail if lam = 1 This PR fixes #819 in sample_from_poisson, which causes Climada to fail if lam = 1 Dec 1, 2023
@emanuel-schmid
Copy link
Collaborator

emanuel-schmid commented Dec 1, 2023

The longer I think about it the more I get confused. Why this case distinction?
@carmensteinmann Wouldn't it be much more natural to make lam a float and simply skip this case distinction?

@carmensteinmann
Copy link
Collaborator

The only reason I can think of is to make the yearset module applicable for hazards that are provided on an annual basis (like the ISIMIP ones), although I agree that it is not particularly useful or needed at all. So removing it would be fine for me.

@emanuel-schmid
Copy link
Collaborator

@carmensteinmann thanks!

I've created another PR #823 (I didn't want to edit this one as it comes from a forged repository)

@emanuel-schmid
Copy link
Collaborator

@ghalter Thanks again for bringing this up! 🙌 You're welcome to comment on #823.

@emanuel-schmid emanuel-schmid mentioned this pull request Dec 5, 2023
13 tasks
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.

3 participants