Changeset 10240:f8a46d26a98d in orange


Ignore:
Timestamp:
02/15/12 14:25:48 (2 years ago)
Author:
anzeh <anze.staric@…>
Branch:
default
rebase_source:
2fba4ffe4e1ca8bdcb0dffffdaf7fcd01b22b6f5
Message:

Set attributeLoadStatus with setattr to avoid Attribute warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/data/io.py

    r10142 r10240  
    420420    domain = Orange.data.Domain(attributes, classVar) 
    421421    table = Orange.data.Table([Orange.data.Instance(domain, [ex.get(attr, attr("?")) for attr in attributes] + [c]) for ex, c in zip(values, classes)]) 
    422     table.attribute_load_status = attributeLoadStatus 
     422    table.setattr("attribute_load_status", attributeLoadStatus) 
    423423    return table 
    424424loadLibSVM = Orange.misc.deprecated_keywords( 
     
    724724 
    725725    table.metaAttributeLoadStatus = meta_attribute_load_status 
    726     table.attributeLoadStatus = attribute_load_status 
     726    table.setattr("attributeLoadStatus", attribute_load_status) 
    727727 
    728728    return table 
Note: See TracChangeset for help on using the changeset viewer.