Changeset 11095:9a01e272802c in orange


Ignore:
Timestamp:
10/04/12 11:27:50 (19 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

New style widget meta descriptions.

The widget meta description using module global namespace.

Location:
Orange
Files:
2 added
13 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Associate/__init__.py

    r10423 r11095  
     1""" 
     2========= 
     3Associate 
     4========= 
    15 
     6Widgets for association rules. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Associate" 
     13 
     14DESCRIPTION = "Widgets for association rules." 
     15 
     16BACKGROUND = "#ACE3CE" 
     17 
     18PRIORITY = 7 
  • Orange/OrangeWidgets/Classify/OWNaiveBayes.py

    r9671 r11095  
    1111from orngWrap import PreprocessedLearner 
    1212from exceptions import Exception 
     13 
     14NAME = "Naive Bayes" 
     15DESCRIPTION = "Naive Bayesian learner/classifier." 
     16 
     17ICON = "icons/NaiveBayes.png" 
     18CATEGORY = "Classify" 
     19PRIORITY = 10 
     20 
     21INPUTS = [("Data", ExampleTable, "setData"), 
     22          ("Preprocess", PreprocessedLearner, "setPreprocessor")] 
     23 
     24OUTPUTS = [("Learner", orange.Learner), 
     25           ("Naive Bayesian Classifier", orange.BayesClassifier)] 
     26 
    1327 
    1428import warnings 
  • Orange/OrangeWidgets/Classify/__init__.py

    r10423 r11095  
     1""" 
     2======== 
     3Classify 
     4======== 
     5 
     6Classification algorithms. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Classify" 
     13 
     14DESCRIPTION = "Classification algorithms." 
     15 
     16BACKGROUND = "#FAC1D9" 
     17 
     18ICON = "icons/Category-Classify.svg" 
     19 
     20PRIORITY = 3 
  • Orange/OrangeWidgets/Data/OWDataTable.py

    r10703 r11095  
    77""" 
    88 
    9 # OWDataTable.py 
    10 # 
    11 # wishes: 
    12 # ignore attributes, filter examples by attribute values, do 
    13 # all sorts of preprocessing (including discretization) on the table, 
    14 # output a new table and export it in variety of formats. 
    15  
    169from OWWidget import * 
    1710import OWGUI 
     
    1912from orngDataCaching import * 
    2013import OWColorPalette 
     14 
     15 
     16NAME = "Data Table" 
     17 
     18DESCRIPTION = "Shows data in a spreadsheet." 
     19 
     20LONG_DESCRIPTION = """Data Table widget takes one or more data sets 
     21on its input and presents them in a spreadsheet format. 
     22 
     23""" 
     24 
     25ICON = "icons/DataTable.png" 
     26 
     27PRIORITY = 100 
     28 
     29AUTHOR = "Peter Juvan" 
     30 
     31AUTHOR_EMAIL = "peter.juvan(@at@)fri.uni-lj.si" 
     32 
     33INPUTS = [("Data", ExampleTable, "dataset", Multiple + Default)] 
     34 
     35OUTPUTS = [("Selected Data", ExampleTable, Default), 
     36           ("Other Data", ExampleTable)] 
    2137 
    2238############################################################################## 
  • Orange/OrangeWidgets/Data/OWDiscretize.py

    r9671 r11095  
    66<priority>2100</priority> 
    77""" 
     8 
    89import orange 
    910from OWWidget import * 
    1011from OWGraph import * 
    1112import OWGUI 
     13 
     14 
     15NAME = "Discretize" 
     16DESCRIPTION = "Discretization of continuous attributes." 
     17 
     18MAINTAINER = "Ales Erjavec" 
     19MAINTAINER_EMAIL = "ales.erjavec < at > fri.uni-lj.si" 
     20 
     21CATEGORY = "Data" 
     22PRIORITY = 2100 
     23ICON = "icons/Discretize.png" 
     24 
     25HELP = "docs/html/data/discretize.html" 
     26 
     27INPUTS = [("Data", orange.ExampleTable, "setData")] 
     28OUTPUTS = [("Data", orange.ExampleTable,)] 
     29 
     30WIDGET_CLASS = "OWDiscretize" 
     31 
    1232 
    1333def frange(low, up, steps): 
  • Orange/OrangeWidgets/Data/OWFile.py

    r10856 r11095  
    2929        if "type" in var.attributes and "origin" not in var.attributes: 
    3030            var.attributes["origin"] = dirname 
    31                   
     31 
     32 
     33NAME = "File" 
     34DESCRIPTION = "Reads data from a file." 
     35 
     36LONG_DESCRIPTION = """Read a data table from a supported file format on 
     37the the filesystem and send it to the the output.""" 
     38 
     39ICON = "icons/File.png" 
     40AUTHOR = "Janez Demsar" 
     41MAINTAINER_EMAIL = "janez.demsar(@at@)fri.uni-lj.si" 
     42PRIORITY = 10 
     43CATEGORY = "Data" 
     44HELP = "docs/html/data/file.html" 
     45 
     46OUTPUTS = [("Data", orange.ExampleTable,)] 
     47 
     48WIDGET_CLASS = "OWFile" 
     49 
    3250 
    3351class OWFile(OWWidget): 
  • Orange/OrangeWidgets/Data/__init__.py

    r10423 r11095  
     1""" 
     2Data 
     3==== 
     4 
     5""" 
     6 
     7# Category description for the widget registry 
     8 
     9NAME = "Data" 
     10 
     11DESCRIPTION = """Widgets for data manipulation""" 
     12 
     13LONG_DESRIPTION = """\ 
     14This category contains widgets for data manipulation. 
     15This includes loading, importing, saving, preprocessing, 
     16selection, etc. 
     17 
     18""" 
     19 
     20ICON = "icons/Category-Data.svg" 
     21 
     22BACKGROUND = "#FFD39F" 
     23 
     24PRIORITY = 1 
  • Orange/OrangeWidgets/Evaluate/__init__.py

    r10423 r11095  
     1""" 
     2======== 
     3Evaluate 
     4======== 
     5 
     6Evaluate classification/regression performance. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Evaluate" 
     13 
     14DESCRIPTION = "Evaluate classification/regression performance." 
     15 
     16BACKGROUND = "#C3F3F3" 
     17 
     18ICON = "icons/Category-Evaluate.svg" 
     19 
     20PRIORITY = 5 
  • Orange/OrangeWidgets/Prototypes/__init__.py

    r10423 r11095  
     1""" 
     2========== 
     3Prototypes 
     4========== 
     5 
     6Various widgets not polished for regular use. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Prototypes" 
     13 
     14DESCRIPTION = "Various widgets not polished for regular use." 
     15 
     16BACKGROUND = "#FAC1D9" 
  • Orange/OrangeWidgets/Regression/__init__.py

    r10423 r11095  
     1""" 
     2========== 
     3Regression 
     4========== 
     5 
     6Prediction of continuous class variables. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Regression" 
     13 
     14DESCRIPTION = "Prediction of continuous class variables." 
     15 
     16BACKGROUND = "#E5BBFB" 
     17 
     18ICON = "icons/Category-Regression.svg" 
     19 
     20PRIORITY = 4 
  • Orange/OrangeWidgets/Unsupervised/__init__.py

    r10423 r11095  
     1""" 
     2============ 
     3Unsupervised 
     4============ 
    15 
     6Unsupervised learning. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Unsupervised" 
     13 
     14DESCRIPTION = "Unsupervised learning." 
     15 
     16BACKGROUND = "#CAE1EF" 
     17 
     18PRIORITY = 6 
  • Orange/OrangeWidgets/Visualize/__init__.py

    r10423 r11095  
     1""" 
     2========= 
     3Visualize 
     4========= 
     5 
     6Widgets for data visualization. 
     7 
     8""" 
     9 
     10# Category description for the widget registry 
     11 
     12NAME = "Visualize" 
     13 
     14DESCRIPTION = "Widgets for data visualization." 
     15 
     16BACKGROUND = "#FFB7B1" 
     17 
     18ICON = "icons/Category-Visualize.svg" 
     19 
     20PRIORITY = 2 
  • Orange/OrangeWidgets/__init__.py

    r9671 r11095  
    11""" 
    2     This file is here so that the documentation generator can import the 'plot' module.  
     2 
    33""" 
     4import pkg_resources 
     5 
     6 
     7# Entry point for main Orange categories/widgets discovery 
     8def widget_discovery(discovery): 
     9    from . import ( 
     10        Associate, Classify, Data, Evaluate, Regression, 
     11        Unsupervised, Visualize, Prototypes 
     12    ) 
     13    dist = pkg_resources.get_distribution("Orange") 
     14    for pkg in [Data, Visualize, Classify, Regression, Evaluate, Unsupervised, 
     15                Associate, Prototypes]: 
     16        discovery.process_category_package(pkg, distribution=dist) 
Note: See TracChangeset for help on using the changeset viewer.