Package gui :: Package components :: Module spectrum :: Class Spectra_list
[hide private]
[frames] | no frames]

Class Spectra_list

source code


The GUI element for listing loaded spectral data.

Instance Methods [hide private]
 
__init__(self, gui=None, parent=None, box=None, id=None, fn_add=None, proportion=0, button_placement='default', noe_flag=False, relax_fit_flag=False, relax_disp_flag=False)
Build the spectral list GUI element.
source code
 
action_relax_disp_cpmg_setup(self, event=None, item=None)
Launch the relax_disp.cpmg_setup user function.
source code
 
action_relax_disp_exp_type(self, event=None, item=None)
Launch the relax_disp.exp_type user function.
source code
 
action_relax_disp_relax_time(self, event=None, item=None)
Launch the relax_disp.relax_time user function.
source code
 
action_relax_disp_spin_lock_field(self, event=None, item=None)
Launch the relax_disp.spin_lock_field user function.
source code
 
action_relax_fit_relax_time(self, event=None, item=None)
Launch the relax_fit.relax_time user function.
source code
 
action_spectrometer_frq(self, event=None, item=None)
Launch the spectrometer.frequency user function.
source code
 
action_spectrum_baseplane_rmsd(self, event)
Launch the spectrum.baseplane_rmsd user function.
source code
 
action_spectrum_delete(self, event)
Launch the spectrum.delete user function.
source code
 
action_spectrum_integration_points(self, event)
Launch the spectrum.integration_points user function.
source code
 
action_spectrum_replicated(self, event)
Launch the spectrum.replicated user function.
source code
bool
add_disp_point(self, index)
Add the dispersion point info to the element.
source code
bool
add_exp_type(self, index)
Add the experiment type info to the element.
source code
bool
add_frqs(self, index)
Add the spectrometer frequency info to the element.
source code
list of dict of wxID, str, str, method
generate_popup_menu(self, id=None)
Create the popup menu.
source code
bool
noe_spectrum_type(self, index)
Add the NOE spectral type info to the element.
source code
bool
relax_times(self, index)
Add the relaxation delay time info to the element.
source code
bool
replicates(self, index)
Add the replicated spectra info to the element.
source code
 
setup(self)
Override the base variables.
source code
 
update_data(self)
Method called from self.build_element_safe() to update the list data.
source code

Inherited from base_list.Base_list: Enable, add_buttons, build_element, build_element_safe, delete, init_element, is_complete, observer_register, on_right_click, resize, set_box_label, size_cols

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, gui=None, parent=None, box=None, id=None, fn_add=None, proportion=0, button_placement='default', noe_flag=False, relax_fit_flag=False, relax_disp_flag=False)
(Constructor)

source code 

Build the spectral list GUI element.

Parameters:
  • gui (wx.Frame instance) - The main GUI object.
  • parent (wx object) - The parent GUI element that this is to be attached to (the panel object).
  • data (class instance) - The data storage container.
  • box (wx.BoxSizer instance) - The vertical box sizer to pack this GUI component into.
  • id (str) - A unique identification string. This is used to register the update method with the GUI user function observer object.
  • fn_add (func) - The function to execute when clicking on the 'Add' button.
  • proportion (bool) - The window proportion parameter.
  • button_placement (str or None) - Override the button visibility and placement. The value of 'default' will leave the buttons at the default setting. The value of 'top' will place the buttons at the top, 'bottom' will place them at the bottom, and None will turn off the buttons.
  • noe_flag (bool) - A flag which when True will enable the steady-state NOE portions of the wizard.
  • relax_fit_flag (bool) - A flag which when True will enable the relaxation curve-fitting portions of the wizard.
  • relax_disp_flag (bool) - A flag which when True will enable the relaxation dispersion portions of the wizard.
Overrides: object.__init__

action_relax_disp_cpmg_setup(self, event=None, item=None)

source code 

Launch the relax_disp.cpmg_setup user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_relax_disp_exp_type(self, event=None, item=None)

source code 

Launch the relax_disp.exp_type user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_relax_disp_relax_time(self, event=None, item=None)

source code 

Launch the relax_disp.relax_time user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_relax_disp_spin_lock_field(self, event=None, item=None)

source code 

Launch the relax_disp.spin_lock_field user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_relax_fit_relax_time(self, event=None, item=None)

source code 

Launch the relax_fit.relax_time user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_spectrometer_frq(self, event=None, item=None)

source code 

Launch the spectrometer.frequency user function.

Parameters:
  • event (wx event) - The wx event.
  • item (None or int) - This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs.

action_spectrum_baseplane_rmsd(self, event)

source code 

Launch the spectrum.baseplane_rmsd user function.

Parameters:
  • event (wx event) - The wx event.

action_spectrum_delete(self, event)

source code 

Launch the spectrum.delete user function.

Parameters:
  • event (wx event) - The wx event.

action_spectrum_integration_points(self, event)

source code 

Launch the spectrum.integration_points user function.

Parameters:
  • event (wx event) - The wx event.

action_spectrum_replicated(self, event)

source code 

Launch the spectrum.replicated user function.

Parameters:
  • event (wx event) - The wx event.

add_disp_point(self, index)

source code 

Add the dispersion point info to the element.

This is either the CPMG pulse frequency or the spin-lock field strength. Both share the same column.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if the data exists, False otherwise.

add_exp_type(self, index)

source code 

Add the experiment type info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if the data exists, False otherwise.

add_frqs(self, index)

source code 

Add the spectrometer frequency info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if the frequency data exists, False otherwise.

generate_popup_menu(self, id=None)

source code 

Create the popup menu.

Parameters:
  • id (str) - The spectrum ID string for the row that was clicked on.
Returns: list of dict of wxID, str, str, method
The popup menu.
Overrides: base_list.Base_list.generate_popup_menu

noe_spectrum_type(self, index)

source code 

Add the NOE spectral type info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if a spectrum type exists, False otherwise.

relax_times(self, index)

source code 

Add the relaxation delay time info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if relaxation times exist, False otherwise.

replicates(self, index)

source code 

Add the replicated spectra info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if relaxation times exist, False otherwise.