Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry has one or fewer segments error #16

Open
LiamLombard opened this issue Mar 30, 2020 · 0 comments
Open

Geometry has one or fewer segments error #16

LiamLombard opened this issue Mar 30, 2020 · 0 comments

Comments

@LiamLombard
Copy link

RuntimeError: GEOMETRY HAS ONE OR FEWER SEGMENTS. Please send bug report. This causes an error that we're trying to fix.

The error log requested a bug report, thought I'd submit this.

Not sure how useful this is if you knew about the bug already but this is a reproducible example (I'm running this on python 3.7.4 on windows, haven't tested on linux):

import PyNEC as nec

context = nec.nec_context()
geo = context.get_geometry()

parent = [0, 0, 0]
child = [-0.001, 0, 0.001]

geo.wire(
    tag_id=0,
    segment_count=1,
    xw1=parent[0],
    yw1=parent[1],
    zw1=parent[2],
    xw2=child[0],
    yw2=child[1],
    zw2=child[2],
    rad=0.001,
    rdel=1.0,
    rrad=1.0
)

context.geometry_complete(0)

The bug itself isn't a huge issue for me, but am happy to help if needed. Let me know if you need any more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant