pyworkflow.viewer module
- class pyworkflow.viewer.CommandView(cmd, **kwargs)[source]
Bases:
View
View for calling an external command.
- class pyworkflow.viewer.MessageView(msg, title='', msgType=0, tkParent=None, **kwargs)[source]
Bases:
View
View for some message.
- class pyworkflow.viewer.ProtocolViewer(**kwargs)[source]
-
Special kind of viewer that have a Form to organize better complex visualization associated with protocol results. If should provide a mapping between form params and the corresponding functions that will return the corresponding Views.
- setProtocol(protocol)[source]
Set the protocol instance to the viewer and call the definition of the parameters.
- validateInstallation()[source]
Check if the installation of this protocol is correct. By default, we will check if the protocols’ package provide a validateInstallation function and use it. Returning an empty list means that the installation is correct and there are not errors. If some errors are found, a list with the error messages will be returned.
- class pyworkflow.viewer.TextView(filelist, title='', tkParent=None, **kwargs)[source]
Bases:
View
View for display some text file.
- class pyworkflow.viewer.View[source]
Bases:
object
Represents a visualization result for some object or file. Views can be plots, table views, chimera scripts, commands or messages.
- class pyworkflow.viewer.Viewer(tmpPath='./Tmp', **args)[source]
Bases:
object
A Viewer will provide several Views to visualize the data associated to data objects or protocol.
The _targets class property should contain a list of string with the class names that this viewer is able to visualize. For example: _targets = [‘Image’, ‘SetOfImages’]
- errorList(errors, views, title='Visualization errors')[source]
Convert an error list in a single Error message.
- getView()[source]
This method should return the string value of the view in web that will respond to this viewer. This method only should be implemented in those viewers that have WEB_DJANGO environment defined.