Skip to content

use nanmedian instead #4

Description

@jorgemarpa

self.model -= np.median(self.model)

Because self.weights can contain 0 values, dividing by the weights could lead to nan values and therefore this median operation should be np.nanmedian() instead.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions