This is linked to https://github.com/PolicyEngine/policyengine-uk/issues/928. In situations where a sim or microsim attempts to use microdf's MicroSeries class, rank method with an array of weights that equal 0, core should raise an error. This is because the rank method will attempt to divide by the sum of all values within the weights array, be unable to divide, and return an array of nan values.
This is linked to https://github.com/PolicyEngine/policyengine-uk/issues/928. In situations where a sim or microsim attempts to use
microdf
'sMicroSeries
class,rank
method with an array of weights that equal 0,core
should raise an error. This is because therank
method will attempt to divide by the sum of all values within the weights array, be unable to divide, and return an array ofnan
values.