Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tavaughan/CathNav
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: SlicerIGT/CathNav
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 14, 2018

  1. Update cleanup function according to recent Guidelet base class change

    The Guidelet base class now has a separate cleanup function that needs to be called when the guidelet is closed, instead of the cleanup function that has been introduced in the scripted loadable module base class that is called when the module is unloaded. See SlicerIGT commit SlicerIGT/SlicerIGT@216a13e
    Csaba Pinter authored Nov 14, 2018
    Copy the full SHA
    06f7b23 View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/slicelet/CathNav.py
10 changes: 5 additions & 5 deletions src/slicelet/CathNav.py
Original file line number Diff line number Diff line change
@@ -173,12 +173,12 @@ def __init__(self, parent, logic, configurationName='Default'):
self.calibrationCollapsibleButton.setProperty('collapsed', False)

def __del__(self):#common
self.cleanup()
self.preCleanup()

# Clean up when slicelet is closed
def cleanup(self):#common
Guidelet.cleanup(self)
logging.debug('cleanup')
def preCleanup(self):#common
Guidelet.preCleanup(self)
logging.debug('preCleanup')
self.setAndObserveTumorMarkupsNode(None)

def setupScene(self): #applet specific
@@ -1914,4 +1914,4 @@ def determinePointWeightsMinimumSpanningTree(self, pointsMm):
pointWeights.append(pointWeight)

return pointWeights