Skip to content

Setting power fails @ 100% #1

@Wobbly74

Description

@Wobbly74

In the development branch, when using elements which end up with various fractional percentages of the overall power this sometimes ends up with not being able to set the power to 100%, due to the precision of using a float for the calculation. This is easily replicated when setting up 2 elements, one with 3000w the other with 1500w. This ends up with a final powersum array value of 99.999999999 which causes the searchsorted function call in calculate_individual_actor_power to fail with an index out of range when trying to set the power to 100. I've worked around this simply at the moment by just always overriding the last powersum array element to always be 100. Apart from that the newer version of the plugin seems to work ok at first test, as I want to use this plugin to restrict the number of elements used when reaching a boil.

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