Exemplo n.º 1
0
def test_premature_closure():
    cath = CatheterObj(row, col)
    assert cath.finishMeasuring() is False
Exemplo n.º 2
0
        if coords is not None:
            print("FILL IN HERE")
            pass

    def removeCatheter(self, catheter=None):
        targetUID = catheter.uid
        for ind, cath in enumerate(self.CatheterList):
            if cath.uid == targetUID:
                print("a match! catheter being removed")
                del (self.CatheterList[ind])

        N = len(self.CatheterList)
        print("There are {} catheters remaining".format(N))

    def export_as_CHA(self, sourcePath, destPath):
        # self.plan_exporter. DO THING ()
        # sort catheters by bottom row, left to right, then up
        #
        pass


if __name__ == "__main__":
    myPlan = Patient_Plan()
    myCath = CatheterObj()
    myCath.setTemplatePosition_byCode(row=4, col='B')
    myCath.addDescribingPoint([44, 39, -40])
    myCath.finishMeasuring()
    myPlan.addCatheter(myCath)

    print(myPlan.CatheterList[0].measurements)
Exemplo n.º 3
0
def test_close_catheter():
    cath = CatheterObj(row, col)
    assert cath.add_raw_measurement(dummyPoints) is True
    assert cath.finishMeasuring() is True
    assert cath.add_raw_measurement(dummyPoints) is False