pwem.wizards.wizard module

This module implement some base classes and utils for wizards The content of this module is not discovered at runtime by pyworkflow. Usage of this content is though importing it

class pwem.wizards.wizard.BandPassFilterDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.DownsampleDialog

addFreqSlider(label, value, col)[source]
getFreqDecay()[source]
getHighFreq()[source]
getLowFreq()[source]
updateFilteredImage()[source]
class pwem.wizards.wizard.ColorScaleDialog(parentWindow, lowest, highest, intervals, colorPalette)[source]

Bases: pyworkflow.gui.dialog.Dialog

This will assist users to choose the color scale and range for local resolution viewers

body(master)[source]

Draws the main frame of the dialog

getAvailablePalettes()[source]

Returns a list of all available palettes

getColorPalette()[source]
getHighest()[source]
getIntervals()[source]
getLowest()[source]
class pwem.wizards.wizard.ColorScaleWizardBase[source]

Bases: pwem.wizards.wizard.EmWizard

Base wizard to edit color scale parameters Usage:

1.- define new class inheriting this one 2.- declare _targets = ColorScaleWizardBase.defineTargets(youviewer) in a class scope, right after class definition. 3.- call ColorScaleWizardBase.defineColorScaleParams(group) in your viewer._defineParams 4.- use attributes in your plotting method
static defineColorScaleParams(form, defaultHighest=10, defaultLowest=0, defaultIntervals=11, defaultColorMap='jet')[source]
classmethod defineTargets(*viewersClass)[source]

:return targets list per each viewer class passed

show(form)[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.CtfDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.DownsampleDialog

downKeyPress(event)[source]
getDownsample()[source]
static getFreq(freqSlider)[source]
getHighFreq()[source]
getLowFreq()[source]
highlightInnerSlider()[source]
highlightOuterSlider()[source]
makeBigger(event)[source]
makeSmaller(event)[source]
manageMaskVals()[source]
static setFreq(freqSlider, val)[source]
showValues(var2set, labSlider)[source]

Show the values selected for the inner and outer radius. If the units are angstroms (sampling_rate = 1, it will show only one value to avoid redundancies

upKeyPress(event)[source]
updateFreqRing()[source]
updateSliderInnerRadius()[source]
updateSliderOuterRadius()[source]
class pwem.wizards.wizard.CtfDownsampleDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.CtfDialog

getDownsample()[source]
class pwem.wizards.wizard.CtfWizard[source]

Bases: pwem.wizards.wizard.EmWizard

classmethod getView()[source]

This method should return the string value of the view in web that will respond to this wizard. This method only should be implemented in those wizards that have WEB_DJANGO environment defined.

show(form, value, label, units='px')[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.DownsampleDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.ImagePreviewDialog

getDownsample()[source]
manageMaskVals()[source]
class pwem.wizards.wizard.DownsampleWizard[source]

Bases: pwem.wizards.wizard.EmWizard

classmethod getView()[source]

This method should return the string value of the view in web that will respond to this wizard. This method only should be implemented in those wizards that have WEB_DJANGO environment defined.

show(form, value, label, units='px')[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.EmWizard[source]

Bases: pyworkflow.wizard.Wizard

class pwem.wizards.wizard.FilterParticlesWizard[source]

Bases: pwem.wizards.wizard.FilterWizard

class pwem.wizards.wizard.FilterVolumesWizard[source]

Bases: pwem.wizards.wizard.FilterWizard

class pwem.wizards.wizard.FilterWizard[source]

Bases: pwem.wizards.wizard.EmWizard

show(form, value, label, mode, unit='px', **args)[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.GaussianFilterDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.BandPassFilterDialog

getFreqSigma()[source]
class pwem.wizards.wizard.GaussianParticlesWizard[source]

Bases: pwem.wizards.wizard.GaussianWizard

class pwem.wizards.wizard.GaussianVolumesWizard[source]

Bases: pwem.wizards.wizard.GaussianWizard

class pwem.wizards.wizard.GaussianWizard[source]

Bases: pwem.wizards.wizard.EmWizard

show(form, value, label, units='1/px')[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.ImagePreviewDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.PreviewDialog

class pwem.wizards.wizard.MaskPreviewDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.ImagePreviewDialog

addRadiusBox(parent)[source]
static getRadius(radiusSlider)[source]
getRadiusAngstroms(radiusSlider)[source]
makeBigger(event)[source]
makeSmaller(event)[source]
manageMaskVals()[source]
static setRadius(radiusSlider, val)[source]
showValues(var2set, radiusSlider)[source]

Show the values selected for the inner and outer radius. If the units are angstroms (sampling_rate = 1, it will show only one value to avoid redundancies

updateSliderRadius()[source]
class pwem.wizards.wizard.MaskRadiiPreviewDialog(parent, provider, **args)[source]

Bases: pwem.wizards.wizard.MaskPreviewDialog

downKeyPress(event)[source]
highlightInnerSlider()[source]
highlightOuterSlider()[source]
makeBigger(event)[source]
makeSmaller(event)[source]
manageMaskVals()[source]
upKeyPress(event)[source]
updateSliderInnerRadius()[source]
updateSliderOuterRadius()[source]
class pwem.wizards.wizard.MaskRadiiWizard[source]

Bases: pwem.wizards.wizard.EmWizard

classmethod getView()[source]

This method should return the string value of the view in web that will respond to this wizard. This method only should be implemented in those wizards that have WEB_DJANGO environment defined.

show(form, value, label, units='px')[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.MaskRadiusWizard[source]

Bases: pwem.wizards.wizard.EmWizard

setVar(form, label, value)[source]
show(form, value, label, units='px')[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.PDBVolumeWizard[source]

Bases: pwem.wizards.wizard.EmWizard

show(form)[source]

This will show up the wizard to select parameters. Params:

form: the protocol form, given access to to all parameters.
Some times the same wizard will modifify several elements in the form.
*params: a list of params to modify, sometimes the wizard can
be generic and can be used for different parameters in the same form.
class pwem.wizards.wizard.ParticleMaskRadiusWizard[source]

Bases: pwem.wizards.wizard.MaskRadiusWizard

class pwem.wizards.wizard.ParticlesMaskRadiiWizard[source]

Bases: pwem.wizards.wizard.MaskRadiiWizard

class pwem.wizards.wizard.PreviewDialog(parent, provider, **args)[source]

Bases: pyworkflow.gui.dialog.Dialog

This will be the base class for several wizards. The layout of this wizard will be: 1. Left panel(Items) that contains a list of items to preview 2. Right-top panel (Preview) where some preview of the items will be displayed 3. Right-bottom panel (Controls) where some controls can change the preview

body(bodyFrame)[source]

create dialog body. return widget that should have initial focus. This method should be overridden, and is called by the __init__ method.

class pwem.wizards.wizard.VolumeMaskRadiiWizard[source]

Bases: pwem.wizards.wizard.MaskRadiiWizard

class pwem.wizards.wizard.VolumeMaskRadiusWizard[source]

Bases: pwem.wizards.wizard.MaskRadiusWizard