MetaModel

class MetaModel()

Bases: QObject

Abstract base class for models.

Public Methods

Abstract Methods

These methods must be implemented by subclasses.

(none)

Concrete Methods

MetaModel.cache_plot_data(data, labels)
MetaModel.emit_progress_update(progress, identifier)

Emit the progress update signal

MetaModel.format_cache_data()
MetaModel.generate_report(channel, key)
MetaModel.reset_lock(channel, key)
MetaModel.run_generators(key)
MetaModel.set_force_serial_channel_operations(serial_ops, key, channel)
MetaModel.set_generator(generator, channel, key, metaclass)

Add generator and set it to be run by a QThread.

MetaModel.stop_workers(key=None, channel=None, exiting=False)

Stop workers based on specified key and/or channel.

MetaModel.update_available_plugins(available_plugins: dict) None

Called whenever a new plugin is instantiated elsewhere in the app, to keep an up to date list of possible data sources for use by this plugin.

Parameters:

available_plugins (dict) – dict of lists keyed by MetaClass, listing the identifiers of all instantiated plugins throughout the app.

Private Methods

Abstract Methods

These methods must be implemented by subclasses.

abstractmethod MetaModel._init() None

Perform additional initialization specific to the algorithm being implemented. Must be implemented by subclasses.

This function is called at the end of the class constructor to perform additional initialization specific to the algorithm being implemented. kwargs provided to the base class constructor are available as class attributes.

Concrete Methods

MetaModel.__init__(**kwargs) None

Initialize the MetaModel

Parameters:

kwargs (dict) – Additional parameters to set as attributes on the instance