Skip to content

HighDensityRegionAlgorithm does not work on OT 1.24 #45

@jiortizv

Description

@jiortizv

There is an issue with the draw method in the HighDensityRegionAlgorithm class when the ot.Contour function is called.

In version 1.4 of OpenTurns, the definition of this function has changed, and it now requires only three arguments. However, the current call to the function on line 251 still uses five arguments.

To fix this issue, replace the following:

contour = ot.Contour(
    xx, yy, data, self.pvalues, ot.Description(labels)
)

With this:

contour = ot.Contour(
    xx, yy, data
)
contour.setLevels(self.pvalues)
contour.setLabels(ot.Description(labels))

This modification ensures that the draw method works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions