mcsas.bases.dataset.dataset module

class DataSet(**kwargs)[source]

Bases: bases.dataset.titlemixin.TitleMixin, bases.dataset.rawarraymixin.RawArrayMixin

Container base class for all kinds of data to be passed around in the UI. Knows its originally loaded (raw) data array and its title to be shown in a UI.

class DisplayMixin(**kwargs)[source]

Bases: object

Provides additional data to display in a list or tree view.

displayData

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C:
def f(cls, arg1, arg2, ...): ... f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.

displayDataDescr

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C:
def f(cls, arg1, arg2, ...): ... f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.

isRemovable

Returns if this data set may be removed (e.g. from data lists in a GUI)

class ResultMixin(**kwargs)[source]

Bases: object

result

Supposed to return a list of Result types.

classproperty(func)

Warning

function ‘bases.dataset.dataset.classproperty’ undocumented