Skip to content

Possible Bug: is rate required to be a pd.Series in framework.utilities.rate_to_probability? #257

@aflaxman

Description

@aflaxman

I tried using a float for a simple example and found that the rate variable uses rate[rate>250] pattern now:

rate[rate > 250] = 250.0

I would like to change this to np.clip(rate, -np.inf, 250.0), so that it works with scalars, but I thought I'd see if anyone sees a risk in this before making a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions