|
@@ -10,19 +10,19 @@ import json
|
|
|
# labkeySlicerPythonExtension
|
|
|
#
|
|
|
|
|
|
-class labkeySlicerPythonExtension(ScriptedLoadableModule):
|
|
|
+class labkeyBrowser(ScriptedLoadableModule):
|
|
|
"""Uses ScriptedLoadableModule base class, available at:
|
|
|
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py
|
|
|
"""
|
|
|
|
|
|
def __init__(self, parent):
|
|
|
ScriptedLoadableModule.__init__(self, parent)
|
|
|
- self.parent.title = "labkeySlicerPythonExtension" # TODO make this more human readable by adding spaces
|
|
|
+ self.parent.title = "labkeyBrowser" # TODO make this more human readable by adding spaces
|
|
|
self.parent.categories = ["LabKey"]
|
|
|
self.parent.dependencies = []
|
|
|
self.parent.contributors = ["Andrej Studen (UL/FMF)"] # replace with "Firstname Lastname (Organization)"
|
|
|
self.parent.helpText = """
|
|
|
- Labkey interface to slicer
|
|
|
+ Interface to files in LabKey
|
|
|
"""
|
|
|
self.parent.acknowledgementText = """
|
|
|
Developed within the medical physics research programme of the Slovenian research agency.
|
|
@@ -32,7 +32,7 @@ class labkeySlicerPythonExtension(ScriptedLoadableModule):
|
|
|
# labkeySlicerPythonExtensionWidget
|
|
|
#
|
|
|
|
|
|
-class labkeySlicerPythonExtensionWidget(ScriptedLoadableModuleWidget):
|
|
|
+class labkeyBrowserWidget(ScriptedLoadableModuleWidget):
|
|
|
"""Uses ScriptedLoadableModuleWidget base class, available at:
|
|
|
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py
|
|
|
"""
|
|
@@ -40,7 +40,7 @@ class labkeySlicerPythonExtensionWidget(ScriptedLoadableModuleWidget):
|
|
|
def setup(self):
|
|
|
ScriptedLoadableModuleWidget.setup(self)
|
|
|
# Instantiate and connect widgets ...
|
|
|
- self.logic=labkeySlicerPythonExtensionLogic(self)
|
|
|
+ self.logic=labkeyBrowserLogic(self)
|
|
|
self.network=slicerNetwork.labkeyURIHandler()
|
|
|
#
|
|
|
# Parameters Area
|
|
@@ -326,7 +326,7 @@ class labkeySlicerPythonExtensionWidget(ScriptedLoadableModuleWidget):
|
|
|
# labkeySlicerPythonExtensionLogic
|
|
|
#
|
|
|
|
|
|
-class labkeySlicerPythonExtensionLogic(ScriptedLoadableModuleLogic):
|
|
|
+class labkeyBrowserLogic(ScriptedLoadableModuleLogic):
|
|
|
"""This class should implement all the actual
|
|
|
computation done by your module. The interface
|
|
|
should be such that other python code can import
|
|
@@ -407,7 +407,7 @@ class labkeySlicerPythonExtensionLogic(ScriptedLoadableModuleLogic):
|
|
|
return True
|
|
|
|
|
|
|
|
|
-class labkeySlicerPythonExtensionTest(ScriptedLoadableModuleTest):
|
|
|
+class labkeyBrowserTest(ScriptedLoadableModuleTest):
|
|
|
"""
|
|
|
This is the test case for your scripted module.
|
|
|
Uses ScriptedLoadableModuleTest base class, available at:
|
|
@@ -425,7 +425,7 @@ class labkeySlicerPythonExtensionTest(ScriptedLoadableModuleTest):
|
|
|
self.setUp()
|
|
|
self.test_labkeySlicerPythonExtension1()
|
|
|
|
|
|
- def test_labkeySlicerPythonExtension1(self):
|
|
|
+ def test_labkeyBrowser(self):
|
|
|
""" Ideally you should have several levels of tests. At the lowest level
|
|
|
tests sould exercise the functionality of the logic with different inputs
|
|
|
(both valid and invalid). At higher levels your tests should emulate the
|