Changeset 9489:99ad83c0a067 in orange


Ignore:
Timestamp:
08/23/11 02:11:38 (3 years ago)
Author:
wencanluo <wencanluo@…>
Branch:
default
Convert:
175584bb033155c75a878ebdfe520087dd398604
Message:

uncomment the code in OWFile that commented before

Location:
orange
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/data/io.py

    r9488 r9489  
    1414        xml_name = filename + ".xml"  
    1515        arff_name = filename + ".arff"  
    16         return Orange.multilabel.mulan.trans_mulan_data(xml_name,arff_name) 
     16        return Orange.multilabel.mulan.trans_mulan_data(xml_name,arff_name,create_on_new) 
    1717    else: 
    18         return loadARFF_Weka(filename, create_on_new) 
     18        return loadARFF_Weka(filename, create_on_new, kwargs) 
    1919         
    2020def loadARFF_Weka(filename, create_on_new = Orange.data.variable.Variable.MakeStatus.Incompatible, **kwargs): 
  • orange/Orange/multilabel/mulan.py

    r9488 r9489  
    33from xml.dom.minidom import Node 
    44 
    5 def trans_mulan_data(xml_name,arff_name): 
     5def trans_mulan_data(xml_name,arff_name, create_on_new = Orange.data.variable.Variable.MakeStatus.Incompatible, **kwargs): 
    66    """ transform the mulan data format to Tab file 
    77     
     
    2424         
    2525    #load ARFF file 
    26     arff_table = Orange.data.io.loadARFF_Weka(arff_name) 
     26    arff_table = Orange.data.io.loadARFF_Weka(arff_name,create_on_new) 
    2727    domain = arff_table.domain 
    2828     
  • orange/OrangeWidgets/Data/OWFile.py

    r9488 r9489  
    304304                continue 
    305305            attrs = [attr.name for attr, stat in zip(data.domain, data.attributeLoadStatus) if stat == status] \ 
    306             #      + [attr.name for id, attr in metas.items() if data.metaAttributeLoadStatus.get(id, -99) == status] 
     306                  + [attr.name for id, attr in metas.items() if data.metaAttributeLoadStatus.get(id, -99) == status] 
    307307            if attrs: 
    308308                jattrs = ", ".join(attrs) 
Note: See TracChangeset for help on using the changeset viewer.