Changeset 4609:5845e2303a7a in orange


Ignore:
Timestamp:
04/22/08 21:13:26 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
0ce4d2feb276d6268eb35796d22390059bf33f4f
Message:
 
Location:
orange/doc/reference
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/reference/Domain.htm

    r4087 r4609  
    282282</XMP> 
    283283 
    284 <P>The optional third argument tells whether the meta attribute is optional (<code>True</code>) or not (<code>False</code>). If omitted, the attribute is not optional. 
     284<P>The optional third argument tells whether the meta attribute is optional (when the value of the argument is non-zero) or not (when it is zero). Different non-zero values can be used for different kinds of non-optional attributes, if needed. These values are application dependent and Orange offers no corresponding registration facilities. If omitted, the attribute is not optional. 
    285285</DD> 
    286286 
     
    316316 
    317317<DT>getmetas([optional])</B></CODE></DT> 
    318 <DD>Returns a list of meta attributes as dictionary where id's are keys and descriptors are values. If the argument optional is given, the function will return only the optional or the non-optional meta attributes.</DD> 
     318<DD>Returns a list of meta attributes as dictionary where id's are keys and descriptors are values. If the argument optional is given, the function will return only the optional attributes with the same value of the argument, or the non-optional meta attributes, if zero.</DD> 
    319319 
    320320<DT>isOptionalMeta(name | descriptor | id)</B></CODE></DT> 
  • orange/doc/reference/Example.htm

    r4608 r4609  
    287287<dd>Returns example's meta values as a dictionary. Key type can be <code>int</code> (default), <code>str</code> or <code>orange.Variable</code>, and determines whether the keys in the dictionary will be meta-id's, attribute names or attribute descriptors. In the latter two cases, the function will only return the meta values that are registered in the domain (there are no descriptors/names associated with other values). In either case, the dictionary contains only a copy of the values: changing the dictionary won't affect the example's meta values.</p> 
    288288 
    289 <p>Argument 'optional' tells the method to return only the optional or the non-optional meta attributes. If absent, both types of attributes are returned.</p> 
     289<p>Argument 'optional' tells the method to return only the optional or the non-optional meta attributes. For the optional, the attributes with the same value of the flag are returned. If the argument is absent, both types of attributes are returned.</p> 
    290290 
    291291<P>The below code will print out the dictionary with all four possible key-types.</P> 
Note: See TracChangeset for help on using the changeset viewer.