Skip to content

Remove divide-by-zero causing warning in test suite #745

@MaxGhenis

Description

@MaxGhenis

This warning shows up in the test suite

openfisca_us/tests/test_variables.py::test_variable[spm_unit_income_decile]
/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/microdf/generic.py:253: RuntimeWarning: invalid value encountered in true_divide
ranks /= self.weights.values.sum()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions