Skip to content

pysimlin: loop results show pin ids instead of the user's loop name #659

Closed

Description

@bpowers

A modeler can pin a loop and give it a name (set_loop_name), but loop results returned only the generated id (pin1, pin2, ...), so callers had to keep their own id-to-name mapping.

Status

This looks fixed on main by commit 111bca9 ("thread loop name through the analysis FFI").
SimlinLoop.name and SimlinDiscoveredLoop.name exist in src/libsimlin/src/ffi.rs.
pysimlin's Loop.name (src/pysimlin/simlin/analysis.py) and the TS Loop.name (src/engine/src/types.ts) carry it.

Activity

  1. added
    ltm
    on Jun 8, 2026
  2. changed the title [-]pysimlin: surface the user-supplied loop name on Loop objects (pinned loops show only pin{n} ids)[/-] [+]pysimlin: loop results show pin ids instead of the user's loop name[/+] on Oct 12, 2026
  3. added
    enhancement
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing: already fixed on main.

    111bca9 added name to SimlinLoop and SimlinDiscoveredLoop (src/libsimlin/src/ffi.rs:170, 288), populated in src/libsimlin/src/analysis.rs:229 and :707, and threaded to pysimlin Loop.name (analysis.py:354; model.py:711, :921; run.py:363) and the TS Loop.name (src/engine/src/types.ts:621). Pinned by src/pysimlin/tests/test_pinned_loops.py:90-139 and loop_name_round_trips_through_set_loop_name_patch (src/libsimlin/tests/integration/analysis.rs:3095).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions