(self, symbol_name: str)
| 528 | self.placing_cancelled.emit() |
| 529 | |
| 530 | def _next_id(self, symbol_name: str) -> str: |
| 531 | # Number per-PREFIX (not per-symbol): symbols that share a refdes prefix |
| 532 | # — every subcircuit block uses 'X', and e.g. nmos/pmos both use 'M' — |
| 533 | # must draw from one counter so their refdes never collide. from_data |
| 534 | # seeds these counters with the same key (keep them in sync). |
| 535 | prefix = SYMBOL_PREFIX.get(symbol_name, "X") |
| 536 | n = self._counters.get(prefix, 1) |
| 537 | self._counters[prefix] = n + 1 |
| 538 | return f"{prefix}{n}" |
| 539 | |
| 540 | def start_junction_placement(self): |
| 541 | self._end_wire(commit=False) |
no outgoing calls
no test coverage detected