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

inline connectors or cables into connections? #259

Open
egradman opened this issue Nov 15, 2021 · 3 comments
Open

inline connectors or cables into connections? #259

egradman opened this issue Nov 15, 2021 · 3 comments

Comments

@egradman
Copy link

It would be very helpful to be able to inline a connector or a cable into a connection!

connectors:
  X1:
    type: D-Sub
    subtype: female
    pinlabels: [DCD, RX, TX, DTR, GND, DSR, RTS, CTS, RI]
  X2:
    type: Molex KK 254
    subtype: female
    pinlabels: [GND, RX, TX]

connections:
  -
    - X1: [5,2,3]
    - W1:
         gauge: 0.25 mm2
         length: 0.2
         color_code: DIN
         wirecount: 3
         shield: true
    - X2: [1,3,2]

(this implies an ordering on the cable of [1-3])

@martinrieder
Copy link
Contributor

martinrieder commented May 30, 2024

Browsing through the issues list, I noticed that this might be a duplicate of #25 and #134. Are these resolved by PR #186?

@kvid
Copy link
Collaborator

kvid commented May 30, 2024

@martinrieder wrote:

Browsing through the issues list, I noticed that this might be a duplicate of #25 and #134. Are these resolved by PR #186?

Thank's for trying to reduce the number of open issues by identifying duplicates. However, this issue seems, IMHO, to be quite independent from the others you mention.

@egradman seems only to request a syntax that allows connector/cable entries embedded in connection entries to enable a slightly more compact YAML input, without any enhanced functionally besides that. Maybe the title is a bit misleading?

I believe other changes of the connections syntax that enhances functionality has been given higher priority, but later, when the syntax has matured a bit, this issue, or a variation of it, might be considered.

@martinrieder
Copy link
Contributor

Thanks for the clarification. I really did not see that this issue is about the syntax. The suggested change only seems reasonable in such small examples. I do not see how this would improve either file size or readability.

Please see #224 (comment) about some more detailed reasons. IMHO the YAML list should be used only for referencing on predefined designators.

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

3 participants