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.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
- 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]¶
- 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 modify 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]¶
- 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 modify 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.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 modify 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.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 modify 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.FormulaDialog(parentWindow, set, formula='')[source]¶
Bases:
pyworkflow.gui.dialog.Dialog
This will assist users to create a formula based on class attibutes.
- 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 modify 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.MaskPreviewDialog(parent, provider, **args)[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 modify 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
- 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 modify 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 modify 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.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