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

electrical bundle router doesn't compute lengths #500

Closed
joamatab opened this issue Oct 18, 2024 · 0 comments · Fixed by #502
Closed

electrical bundle router doesn't compute lengths #500

joamatab opened this issue Oct 18, 2024 · 0 comments · Fixed by #502

Comments

@joamatab
Copy link
Collaborator

joamatab commented Oct 18, 2024

lengths are reported as 0

this is the failing test

sample_different_factory = """
name: sample_different_factory

instances:
    bl:
      component: pad
    tl:
      component: pad
    br:
      component: pad
    tr:
      component: pad

placements:
    tl:
        x: 0
        y: 200

    br:
        x: 400
        y: 400

    tr:
        x: 400
        y: 600

routes:
    electrical:
        settings:
            port_type: electrical
            separation: 20
            cross_section:
                cross_section: metal3
                settings:
                    width: 10
        links:
            tl,e3: tr,e1
            bl,e3: br,e1
"""


def test_connections_different_factory() -> None:
    c = from_yaml(sample_different_factory)
    c.show()
    lengths = [660000] * 2 + [700000]
    lengths = [0] * 2 + [0]  # TODO: fix this
    assert c.routes["electrical-tl,e3-tr,e1"].length == lengths[0], c.routes[
        "electrical-tl,e3-tr,e1"
    ].length
    assert c.routes["electrical-bl,e3-br,e1"].length == lengths[1], c.routes[
        "electrical-bl,e3-br,e1"
    ].length
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

Successfully merging a pull request may close this issue.

2 participants