pwem.viewers.views module

class pwem.viewers.views.Classes3DView(project, inputid, path, other='', viewParams={}, **kwargs)[source]

Bases: pwem.viewers.views.ClassesView

Customized ObjectView for SetOfClasses.

class pwem.viewers.views.ClassesView(project, inputid, path, other='', viewParams={}, **kwargs)[source]

Bases: pwem.viewers.views.ObjectView

Customized ObjectView for SetOfClasses.

class pwem.viewers.views.CoordinatesObjectView(project, path, outputdir, protocol, pickerProps=None, inTmpFolder=False, **kwargs)[source]

Bases: pwem.viewers.views.DataView

Wrapper to View but for displaying Scipion objects.

MODE_AUTOMATIC = 'Automatic'
show()[source]

This method should be overriden to implement how this particular view will be displayed in desktop.

class pwem.viewers.views.CtfView(project, ctfSet, other='', **kwargs)[source]

Bases: pwem.viewers.views.ObjectView

Customized ObjectView for SetOfCTF objects .

EXTRA_LABELS = ['_ctftilt_tiltAxis', '_ctftilt_tiltAngle', '_xmipp_ctfCritFirstZero', '_xmipp_ctfCritCorr13', '_xmipp_ctfCritIceness', '_xmipp_ctfCritFitting', '_xmipp_ctfCritNonAstigmaticValidty', '_xmipp_ctfCritCtfMargin', '_xmipp_ctfCritMaxFreq', '_xmipp_ctfCritPsdCorr90', '_xmipp_ctfVPPphaseshift']
PSD_LABELS = ['_micObj.thumbnail._filename', '_psdFile', '_xmipp_enhanced_psd', '_xmipp_ctfmodel_quadrant', '_xmipp_ctfmodel_halfplane', '_micObj.plotGlobal._filename']
class pwem.viewers.views.DataView(path, viewParams={}, **kwargs)[source]

Bases: pyworkflow.viewer.View

Wrapper the arguments to showj (either web or desktop). Also useful to visualize images that are not objects, e.g.: dark or gain images

getPath()[source]
getShowJParams()[source]
getShowJWebParams()[source]
getTableName()[source]
getViewParams()[source]

Give access to the viewParams dict.

setMemory(memory)[source]
show()[source]

This method should be overriden to implement how this particular view will be displayed in desktop.

class pwem.viewers.views.ImageView(imagePath, **kwargs)[source]

Bases: pyworkflow.viewer.View

Customized ObjectView for SetOfClasses.

getImagePath()[source]
class pwem.viewers.views.MicrographsView(project, micSet, other='', **kwargs)[source]

Bases: pwem.viewers.views.ObjectView

Customized ObjectView for SetOfCTF objects .

EXTRA_LABELS = ['_filename']
RENDER_LABELS = ['thumbnail._filename', 'psdCorr._filename', 'plotGlobal._filename']
class pwem.viewers.views.ObjectView(project, inputid, path, other='', viewParams={}, **kwargs)[source]

Bases: pwem.viewers.views.DataView

Wrapper to DataView but for displaying Scipion objects.

getShowJParams()[source]
show()[source]

This method should be overriden to implement how this particular view will be displayed in desktop.

class pwem.viewers.views.TableView(headerList, dataList, mesg=None, title=None, height=10, width=400, padding=10, outFileName=None)[source]

Bases: pyworkflow.viewer.View

show table, pass values as: headerList = [‘name’, ‘surname’] dataList = [ (‘John’, ‘Smith’) , (‘Larry’, ‘Black’) , (‘Walter’, ‘White’) , (‘Fred’, ‘Becker’) ]. msg = message to be shown at the table top title= window title height: Specifies the number of rows which should be visible width: minimum width in pixels fontSize= font size padding: cell extra width ——————— Alternative way to create a table using showj views = [] labels = ‘_1 _2’ emSet = EMSet(filename=”/tmp/kk.sqlite”) emObject = EMObject() emObject._1 = String(‘first parameter’) emObject._2 = Float(12.) emSet.append(emObject) emObject = EMObject() emObject._1 = String(‘second parameter’) emObject._2 = Float(22.) emSet.append(emObject) emSet.write() views.append(ObjectView(self._project,

self.protocol.strId(), “/tmp/kk.sqlite”, viewParams = {MODE: MODE_MD, ORDER: labels, VISIBLE: labels}))

return views

saveData()[source]

Save data in the treeView Widget to a file. If not provided the outfile is in the Logs directory the name is the title of the table