Ignore:
Timestamp:
11/01/13 02:09:11 (6 months ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Message:

Changes in headers, widget descriptions text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Data/OWSelectData.py

    r11096 r11748  
    1 """ 
    2 <name>Select Data</name> 
    3 <description>Selects instances from the data set based on conditions over attributes.</description> 
    4 <icon>icons/SelectData.svg</icon> 
    5 <priority>1150</priority> 
    6 <contact>Peter Juvan (peter.juvan@fri.uni-lj.si)</contact> 
    7 """ 
    81import orange 
    92from OWWidget import * 
     
    114from orngDataCaching import * 
    125 
     6NAME = "Select Data" 
     7DESCRIPTION = "Selects data instances based on conditions over data features." 
     8LONG_DESCRIPTION = "" 
     9ICON = "icons/SelectData.svg" 
     10PRIORITY = 1150 
     11AUTHOR = "Peter Juvan" 
     12AUTHOR_EMAIL = "peter.juvan(@at@)fri.uni-lj.si" 
     13INPUTS = [("Data", Orange.data.Table, "setData")] 
     14OUTPUTS = [("Matching Data", Orange.data.Table, Default), 
     15           ("Unmatched Data", Orange.data.Table, )] 
     16 
     17 
    1318class OWSelectData(OWWidget): 
    1419    settingsList = ["updateOnChange", "purgeAttributes", "purgeClasses"] 
    15     contextHandlers = {"": PerfectDomainContextHandler(fields = ["Conditions"], matchValues=2)} 
    16  
    17     def __init__(self, parent = None, signalManager = None, name = "Select data"): 
    18         OWWidget.__init__(self, parent, signalManager, name, wantMainArea = 0)  #initialize base class 
     20    contextHandlers = {"": PerfectDomainContextHandler(fields=["Conditions"], 
     21                                                       matchValues=2)} 
     22 
     23    def __init__(self, parent=None, signalManager=None, name="Select data"): 
     24        OWWidget.__init__(self, parent, signalManager, name, wantMainArea=0) 
    1925 
    2026        self.inputs = [("Data", ExampleTable, self.setData)] 
    21         self.outputs = [("Matching Data", ExampleTable, Default), ("Unmatched Data", ExampleTable)] 
     27        self.outputs = [("Matching Data", ExampleTable, Default), 
     28                        ("Unmatched Data", ExampleTable)] 
    2229 
    2330        self.name2var = {}   # key: variable name, item: orange.Variable 
Note: See TracChangeset for help on using the changeset viewer.