Orange Forum • View topic - Meta attribute not preserved

Meta attribute not preserved

A place to ask questions about methods in Orange and how they are used and other general support.

Meta attribute not preserved

Postby rmalhotra » Wed Dec 25, 2013 20:56


I am trying to create a new data table (filtered_data) from an existing one (data) by calling select. It selects the range of attributes I give it, but it does not preserve the meta attributes. I tried the following the get the meta attributes added to the new data; however, it does not then map the appropriate strings to each instance:

Code: Select all
domain = data.domain[0:5]
filtered_data =
newid = Orange.feature.Descriptor.new_meta_id()
filtered_data.domain.add_meta(newid, data.domain.get_meta("Stock Ticker"))

In the documentation it states that starting 2.7.1 select does preserve the meta attributes. Could you please let me know if it is a bug or if I am doing something wrong? In either case, please let me know of my options.


Re: Meta attribute not preserved

Postby Ales » Fri Dec 27, 2013 16:49

The use of method for attribute selection is deprecated. Please use
Code: Select all
filtered_domain =[0:5], None)
filtered_data =, data)

Return to Questions & Support