exatomic.widgets.widget_base module

Lower Level Widgets

Lower level support widgets framework.

class exatomic.widgets.widget_base.ExatomicScene(**kwargs: Any)[source]

Bases: DOMWidget

A custom scene (three.js scene) used for visualization of an atomic universe.

Custom parameters can be inspected using vars. Parameters include field dimensions, the universe itself, field colors, widths, heights for the widget, etc.

savedir

A trait for unicode strings.

imgname

A trait for unicode strings.

index

An int trait.

cameras

An instance of a Python list.

save_cam

A boolean (True, False) trait.

clear

A boolean (True, False) trait.

save

A boolean (True, False) trait.

w

An int trait.

h

An int trait.

field_pos

A trait for unicode strings.

field_neg

A trait for unicode strings.

field_iso

A float trait.

field_o

A float trait.

field

A trait for unicode strings.

field_kind

A trait for unicode strings.

field_ml

A trait for unicode strings.

uni

A boolean (True, False) trait.

field_nx

An int trait.

field_ny

An int trait.

field_nz

An int trait.

field_ox

A float trait.

field_oy

A float trait.

field_oz

A float trait.

field_fx

A float trait.

field_fy

A float trait.

field_fz

A float trait.

geom

A boolean (True, False) trait.

class exatomic.widgets.widget_base.TensorScene(**kwargs: Any)[source]

Bases: ExatomicScene

Visualize a cartesian tensor.

field

A trait for unicode strings.

geom

A boolean (True, False) trait.

txx

A float trait.

txy

A float trait.

txz

A float trait.

tyx

A float trait.

tyy

A float trait.

tyz

A float trait.

tzx

A float trait.

tzy

A float trait.

tzz

A float trait.

scale

A float trait.

tdx

An int trait.

tens

A boolean (True, False) trait.

class exatomic.widgets.widget_base.UniverseScene(**kwargs: Any)[source]

Bases: ExatomicScene

A scene for viewing quantum systems.

frame_idx

An int trait.

axis

A boolean (True, False) trait.

atom_x

A trait for unicode strings.

atom_y

A trait for unicode strings.

atom_z

A trait for unicode strings.

atom_l

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

atom_s

A trait for unicode strings.

atom_vr

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

atom_cr

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

atom_c

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

atom_3d

A boolean (True, False) trait.

two_b0

A trait for unicode strings.

two_b1

A trait for unicode strings.

field_i

An instance of a Python list.

field_v

An instance of a Python list.

field_p

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

field_idx

A trait which allows any value.

field_iso

A float trait.

field_show

A boolean (True, False) trait.

cont_show

A boolean (True, False) trait.

cont_axis

A trait for unicode strings.

cont_num

An int trait.

cont_lim

An instance of a Python list.

cont_val

A float trait.

frame__a

A float trait.

tens

A boolean (True, False) trait.

tensor_d

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

scale

A float trait.

tidx

An int trait.

fill_idx

An int trait.

bond_r

A float trait.

selected

An instance of a Python dict.

One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.

Changed in version 5.0: Added key_trait for validating dict keys.

Changed in version 5.0: Deprecated ambiguous trait, traits args in favor of value_trait, per_key_traits.

clear_selected

A boolean (True, False) trait.

class exatomic.widgets.widget_base.ExatomicBox(**kwargs: Any)[source]

Bases: Box

Base class for containers of a GUI and scene.

active_scene_indices

An instance of a Python list.

linked

A boolean (True, False) trait.

active()[source]