pkpd.wizards module

class pkpd.wizards.DoseTreeProvider(experiment)[source]

Bases: pyworkflow.gui.tree.TreeProvider

getColumns()[source]

Return a list of tuples (c, w) where: c: is the column name and index w: is the column width

getObjectInfo(obj)[source]

This function will be called by the Tree with each object that will be inserted. A dictionary should be returned with the possible following entries: ‘key’: the key value to insert in the Tree ‘text’: text of the object to be displayed

(if not passed the ‘key’ will be used)

‘image’: image path to be displayed as icon (optional) ‘parent’: the object’s parent in which insert this object (optional) ‘tags’: list of tags names (optional)

getObjects()[source]

Return the objects that will be inserted in the Tree

class pkpd.wizards.FilterVariablesTreeProvider(experiment, filter=None)[source]

Bases: pyworkflow.gui.tree.TreeProvider

Simplified view of VariablesTreeProvider with less columns. Additionally, we can filter by a given function.

getColumns()[source]

Return a list of tuples (c, w) where: c: is the column name and index w: is the column width

getObjectInfo(obj)[source]

This function will be called by the Tree with each object that will be inserted. A dictionary should be returned with the possible following entries: ‘key’: the key value to insert in the Tree ‘text’: text of the object to be displayed

(if not passed the ‘key’ will be used)

‘image’: image path to be displayed as icon (optional) ‘parent’: the object’s parent in which insert this object (optional) ‘tags’: list of tags names (optional)

getObjects()[source]

Return the objects that will be inserted in the Tree

class pkpd.wizards.MultiListDialog(parent, title, provider, message=None, **kwargs)[source]

Bases: pyworkflow.gui.dialog.ListDialog

Select elements among several lists.

apply()[source]

process the data This method is called automatically to process the data, after the dialog is destroyed. By default, it does nothing.

class pkpd.wizards.PKPDChooseDoseWizard[source]

Bases: pyworkflow.wizard.Wizard

getSelectMode()[source]
setFormValues(form, label, values)[source]
show(form, *params)[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 pkpd.wizards.PKPDChooseSeveralVariableWizard[source]

Bases: pkpd.wizards.PKPDChooseVariableWizard

getSelectMode()[source]
getTitle()[source]
setFormValues(form, label, values)[source]
class pkpd.wizards.PKPDChooseVariableWizard[source]

Bases: pyworkflow.wizard.Wizard

getSelectMode()[source]
getTitle()[source]
setFormValues(form, label, values)[source]
show(form, *params)[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 pkpd.wizards.PKPDDoseTemplateWizard[source]

Bases: pyworkflow.wizard.Wizard

show(form, *params)[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 pkpd.wizards.PKPDDosesToSamplesTemplateWizard[source]

Bases: pyworkflow.wizard.Wizard

show(form, *params)[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 pkpd.wizards.PKPDODEWizard[source]

Bases: pyworkflow.wizard.Wizard

show(form, *params)[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 pkpd.wizards.PKPDVariableTemplateWizard[source]

Bases: pyworkflow.wizard.Wizard

show(form, *params)[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 pkpd.wizards.SimpleListTreeProvider(strList, name='Name', width=100)[source]

Bases: pyworkflow.gui.tree.TreeProvider

A simple TreeProvider over the elements of a string list

getColumns()[source]

Return a list of tuples (c, w) where: c: is the column name and index w: is the column width

getObjectInfo(obj)[source]

This function will be called by the Tree with each object that will be inserted. A dictionary should be returned with the possible following entries: ‘key’: the key value to insert in the Tree ‘text’: text of the object to be displayed

(if not passed the ‘key’ will be used)

‘image’: image path to be displayed as icon (optional) ‘parent’: the object’s parent in which insert this object (optional) ‘tags’: list of tags names (optional)

getObjects()[source]

Return the objects that will be inserted in the Tree

class pkpd.wizards.VariablesProvider(parent, title, **kwargs)[source]

Bases: pyworkflow.gui.dialog.Dialog

This class create a frame with the pkpd variables

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.

restartValues(restartAll=False)[source]