Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Wrong work if y data are equal #2

@tantra35

Description

@tantra35

If we ran follow script

import simplify

print simplify.simplify_points([{'y': 0, 'x': 15}, {'y': 0.6, 'x': 16}, {'y': 0, 'x': 17}], 0.5)

we got:

[{'y': 0, 'x': 15}, {'y': 0.6, 'x': 16}, {'y': 0, 'x': 17}]

But this is wrong, we must get follow result:

[{'y': 0, 'x': 15}, {'y': 0, 'x': 17}]

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