MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / start_analysis_placement

Method start_analysis_placement

SLiCAP/schematic/canvas.py:748–763  ·  view source on GitHub ↗
(self, source: list, detector: list, lgref: list)

Source from the content-addressed store, hash-verified

746 self.placing_started.emit()
747
748 def start_analysis_placement(self, source: list, detector: list, lgref: list):
749 from PySide6.QtWidgets import QGraphicsSimpleTextItem
750 from PySide6.QtGui import QBrush
751 self._end_wire(commit=False)
752 self._cancel_placement()
753 ghost = QGraphicsSimpleTextItem(".source / .detector / .lgref")
754 ghost.setFont(COMMAND_FONT)
755 ghost.setBrush(QBrush(COMMAND_COLOR))
756 ghost.setOpacity(0.5)
757 ghost.setAcceptedMouseButtons(Qt.NoButton)
758 self._ghost = ghost
759 self._ghost.setPos(QPointF(-9999, -9999))
760 self.addItem(self._ghost)
761 self._analysis_pending = (source, detector, lgref)
762 self._mode = _Mode.PLACING_ANALYSIS
763 self.placing_started.emit()
764
765 def start_model_placement(self, model_name: str, model_type: str,
766 simulator: str, params: list,

Callers 1

_on_place_analysisMethod · 0.80

Calls 2

_end_wireMethod · 0.95
_cancel_placementMethod · 0.95

Tested by

no test coverage detected