146 add support for multi element channel modeling#205
Conversation
- Expand ch_file trait to ch_files list; add Add/Remove/Clear buttons and a read-only queue display so users can build a composite channel by cascading multiple S-parameter/time-domain files via skrf ** - Persist ch_files in PyBertCfg (backward-compat: falls back to ch_file when list is empty) - Fix IBISModel() calls: drop stale third positional arg that no longer exists in the updated pyibisami signature - Fix run_ami_model(): use AmiModelResponseKey constants (not plain strings) when indexing the dict returned by AMIModel.get_responses() - Add CLAUDE.md with commands, architecture, and key invariants Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The separate FileEditor browse widget is removed; clicking Add now opens a native pyface FileDialog directly and appends the chosen path to ch_files in one step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Didn't get much time to dig deep but a few changes/comments off the cuff. I don't know if you ever tried my branch where I was removing traits and also added this feature and had sent for you to demo. Deltas from that and features worth while adding:
|
Sorry, do you mean that the user's radio button selection makes the irrelevant half disappear? |
Yes! That'd be much nicer. |
Agreed; unnecessarily verbose. |
I think I disagree here.
Let's discuss this one some more. |
Great suggestion! Okay, checkout 9d629e4 and see if you think the additional testing is sufficient. |
…tterson's suggestion.
Uses scikit-rf to construct reference transmission-line networks and verifies that cascading N s2p files via import_channel matches direct skrf cascades, including 2- and 3-segment unit tests and an end-to-end PyBERT simulation test. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Prompt used: > Test the new composite channel building functionality. Use scikit-rf to build the reference channel for testing.
…ntions. Adds TestPortRenumber with 6 tests verifying that renumber=True correctly normalises both the standard "1→2" and alternative "1→3" 4-port conventions, including negative tests (renumber=False on a 1→3 file gives Sdd21≈0) and mixed-convention cascade scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Prompt used: > Expand testing to ensure that port reordering (i.e. - renumber = True) works with a mix of both s4p port numbering conventions.
I turned Claude loose on this issue and I think we've got a workable first-pass solution, after some manual "adjustments" to his fix.
Still to do: