(self, source: list, detector: list, lgref: list)
| 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, |
no test coverage detected