kromatography.ui.factories package

Submodules

kromatography.ui.factories.binding_model module

class kromatography.ui.factories.binding_model.BindingModelBuilderHandler[source]

Bases: traitsui.handler.Handler

close(info, is_ok)[source]
class kromatography.ui.factories.binding_model.BindingModelBuilder[source]

Bases: traits.has_traits.HasStrictTraits

UI to select and build a new binding model.

binding_model_type = Enum(BINDING_MODEL_TYPES)

Target model type selector

model = Property(Instance(BindingModel), depends_on='binding_model_type')

Selected binding model

active_model_view = Property(Instance(ModelView), depends_on='binding_model_type')

Currently active model view

target_product = Str

Name of the product the binding model is built for

traits_view()[source]
create_new_binding_model(bind_type)[source]

Create a binding model object to display.

kromatography.ui.factories.parameter_table_editor module

class kromatography.ui.factories.parameter_table_editor.ModifiedObjectColumn[source]

Bases: traitsui.table_column.ObjectColumn

get_value(object)[source]

Gets the formatted value of the column for a specified object passing the object rather than the value.

kromatography.ui.factories.parameter_table_editor.build_regular_parameter_table_editor(center_sim=None, num_values_fixed=False, support_parallel_params=False)[source]

TableEditor factory for the parameter scans that are possible to explore around the simulation provided.

Note: the table editor doesn’t support adding elements: it should be accompanied with a button which manually contributes to the list of ParameterScanDescriptions since that provides a higher level of controls anyway.

kromatography.ui.factories.parameter_table_editor.build_mc_parameter_table_editor(center_sim=None)[source]

TableEditor factory for the parameter scans that are possible to explore around the simulation provided.

Note: the table editor doesn’t support adding elements: it should be accompanied with a button which manually contributes to the list of ParameterScanDescriptions since that provides a higher level of controls anyway.

kromatography.ui.factories.product module

GUIs, classes and utilities to build a new product.

class kromatography.ui.factories.product.ComponentDescription[source]

Bases: traits.has_traits.HasStrictTraits

Grouping of product component name and concentration expression, to display together in a table editor.

class kromatography.ui.factories.product.ProductBuilder[source]

Bases: traits.has_traits.HasStrictTraits

New Product builder, from available components of a datasource.

name = Str('New product')

Name of the future product being created

description = Str

User notes about the products’s origin, purpose, ...

product_type = Str

Type of the future product

pI = Instance(UnitScalar)

pI of the future product

expert_mode = Bool

Simplified UI of full one?

component_descs = List(Instance(ComponentDescription))

List of component descriptions: names and concentration expressions

add_strip = Bool(True)

Whether to automatically add a strip component to the new Product.

strip_component_descs = List(Instance(ComponentDescription))

List of additional component description. Only 1 comp allowed: Strip

strip_component = Instance(ProductComponent)

Actual strip compoment that the future product will include

component_assay_names = List(ProductComponentAssay)

List of assay values (only displayed in the expert mode)

datasource = Instance(SimpleDataSource)

Datasource to pull product components from

traits_view()[source]
build_product(allow_ui=True)[source]

Create an instance of a Product from the characteristics and component descriptions of the builder.

expand_product_attributes()[source]

The product was setup in simplified mode: expand product assays and component concentration expressions.

lookup_components()[source]

Look up product components in the builder’s DS to match the comp descriptions.

class kromatography.ui.factories.product.ProductComponentSelector[source]

Bases: traits.has_traits.HasStrictTraits

Utility UI class to select a list of product component names targeting a specific product, or create new ones.

traits_view()[source]
update_candidates()[source]
kromatography.ui.factories.product.collect_component_candidates_names(target_product, datasource)[source]

Collect the name of all product components in the datasource targeting the specified product.

kromatography.ui.factories.product.build_component_descr_editor(expert_mode)[source]

Build a table editor to edit a list of ComponentDescription.