Raw value string for a property key.
(self, key: str)
| 571 | return keys |
| 572 | |
| 573 | def _prop_value(self, key: str) -> str: |
| 574 | """Raw value string for a property key.""" |
| 575 | if key == "refdes": |
| 576 | return self.instance_id |
| 577 | if key == "model": |
| 578 | return self.model |
| 579 | if key.startswith("ref "): |
| 580 | try: |
| 581 | idx = int(key.split()[1]) - 1 |
| 582 | return self.refs[idx] if idx < len(self.refs) else "" |
| 583 | except (ValueError, IndexError): |
| 584 | return "" |
| 585 | return self.params.get(key, "") |
| 586 | |
| 587 | def _prop_text(self, key: str) -> str: |
| 588 | """ |
no outgoing calls
no test coverage detected