Skip to content

Ring Ignitions error when running .generate_pattern() #158

Description

@MaryKBrady

When creating ring ignition patterns I get an error that says "AttributeError: can't set attribute 'coords'". I believe this error comes from ring.py line 82: port_line.coords = list(port_line.coords)[::-1]. LineStrings are immutable so the coordinates cannot be overwritten in that manner.

This alternative seems to work: replace line 82 with port_line = LineString(list(port_line.coords)[::-1]) . That line overwrites port_line with a linestring with the reversed coordinates. You also need to add an import statement: from shapely.geometry import LineString

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