MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _prop_value

Method _prop_value

SLiCAP/schematic/component_item.py:573–585  ·  view source on GitHub ↗

Raw value string for a property key.

(self, key: str)

Source from the content-addressed store, hash-verified

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 """

Callers 2

_prop_textMethod · 0.95
update_labelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected