Skip to content

Popgen2 = weighted sum for some columns are zero....so do not adjust #11

@gharaviSara

Description

@gharaviSara

Dear Team,
I am using the popgen several time with same data but now I faced :
sample_weights sum: 7072.99798855
ipu for Region: 3
Weighted sum for column ('person', 2L, 9L, 1L, 2L, 2L) in iter 0is zero so don't adjust
Weighted sum for column ('person', 1L, 11L, 1L, 2L, 2L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 5L, 2L, 4L, 3L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 5L, 2L, 3L, 3L) in iter 0is zero so don't adjust
Weighted sum for column ('household', 4L, 2L, 4L, 2L) in iter 0is zero so don't adjust
.
.
.
which related to your reweighting.py seems it calculates the weight as zero but my data seems correct .
you can find the data
https://1drv.ms/u/s!As29Kwv1MAnIsy0GV1UMTJ34BtSF?e=8AxDff

the problem is when it finish it raise error in outputs seems there is nan in result

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