Skip to content

Ignore NaN values in the posterior mean computation / fix NaN values #38

@adonath

Description

@adonath

I noticed that LIRA's C code would occasionally sample NaN values, which then affects the computation of the posterior mean. However recomputing the posterior mean from the image trace using np.nanmean just works fine. ideally we can fix the cause of NaN values being generated. If it is expected, one should adapt at least the posterior mean computation.

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