Skip to content

Invalid value encountered in clip_by_rect - PyRolL-Core 3.1.0 #345

@sag-kalibreur

Description

@sag-kalibreur

In exceptional cases, the PyRolL Core 3.1.0 solver generates a runtime warning from shapely:

"\venv03_py313\Lib\site-packages\shapely\constructive.py:418: RuntimeWarning:"
invalid value encountered in clip_by_rect

Although the calculation runs correctly, a "NotImplementedError" occurs in the affected self-plots of the RollPass and the plot output results in an empty plot or only the incoming profile is displayed.

Image

System settings: PyRoll version: 3.1.0 | Python version: 3.13.9

The latest version of the core, which still generated straight edges in the free spreadness (V3.0.3), works perfectly in a direct comparison.
The error is therefore related to the bulging of the edges.

Image

System settings: PyRoll version: 3.0.3 | Python version: 3.13.9

Please take a look at this; I can provide you with the notebook for this.

Metadata

Metadata

Assignees

No one assigned

    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