Commits

Aleš Erjavec committed 401ae7c

Added new style widget meta descriptions.

  • Participants
  • Parent commits 4f4446f

Comments (0)

Files changed (3)

orangecontrib/modelmaps/widgets/OWModelEmbedder.py

 import OWNomogram
 import OWMDS
 
+NAME = "Model Embedder"
+DESCRIPTION = "Embeds a model widget"
+ICON = "icons/DistanceFile.png"
+PRIORITY = 6530
+
+INPUTS = [("Data", data.Table, "setData"),
+          ("Model", modelmaps.Model, "setModel", Default)]
+
+OUTPUTS = [("Selected Data", data.Table),
+           ("Other Data", data.Table)]
+
+REPLACES = ["_modelmaps.widgets.OWModelEmbedder.OWModelEmbedder"]
+
+
 class OWModelEmbedder(OWWidget):
     settingsList = []
 

orangecontrib/modelmaps/widgets/OWModelFile.py

 from OWWidget import *
 from Orange import data, misc
 
+
+NAME = "Model File"
+DESCRIPTION = "Load a Model Map"
+ICON = "icons/DistanceFile.png"
+PRIORITY = 6510
+
+OUTPUTS = [("Distances", misc.SymMatrix),
+           ("Model Meta-data", data.Table),
+           ("Original Data", data.Table)]
+
+REPLACES = ["_modelmaps.widgets.OWModelFile.OWModelFile"]
+
+
 class OWModelFile(OWWidget):
     settingsList = ["files", "file_index"]
 

orangecontrib/modelmaps/widgets/OWModelMap.py

 
 from Orange import classification, misc, modelmaps, network, utils
 from Orange.network.community import CommunityDetection
-from OWNxCanvasQt import OWNxCanvas
+from Orange.network.widgets.OWNxCanvasQt import OWNxCanvas
 
 from orngScaleLinProjData import *
-from OWNxExplorer import *
 from OWkNNOptimization import OWVizRank
-from OWNxHist import *
 from OWDistributions import OWDistributionGraph
 
+from Orange.network.widgets.OWNxExplorer import *
+from Orange.network.widgets.OWNxHist import *
+
+
 from PyQt4 import QtCore
 
+NAME = "Model Map"
+DESCRIPTIPN = "Visualization and analysis of prediction models"
+ICON = "icons/Network.png"
+PRIORITY = 6520
+
+INPUTS = [("Community Detection", CommunityDetection, "set_community"),
+          ("Distances", misc.SymMatrix, "set_matrix", Default),
+          ("Model Subset", data.Table, "set_models_subset")]
+
+OUTPUTS = [("Model", modelmaps.Model),
+           ("Classifier", classification.Classifier),
+           ("Selected Models", data.Table)]
+
+REPLACES = ["_modelmaps.widgets.OWModelMap.OWModelMap"]
+
+
 dir = utils.environ.widget_install_dir
 
 ICON_PATHS = [("TREE", "Classify/icons/ClassificationTree"),