Skip to content

sample_from_poisson fails if lam is 1 #819

@ghalter

Description

@ghalter

This line of code fails because one cannot take the length of an integer.

https://github.com/CLIMADA-project/climada_python/blob/e41222210bfb99e92829c0a86f1db2f31355abf5/climada/util/yearsets.py#L172C56-L172C56

I will provide a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions