Author: bugman Date: Fri Sep 16 14:46:37 2011 New Revision: 14667 URL: http://svn.gna.org/viewcvs/relax?rev=14667&view=rev Log: Bug fix for the structure.read_pdb GUI user function. The values from the GUI are now converted to the correct form. Modified: 1.3/gui/user_functions/structure.py Modified: 1.3/gui/user_functions/structure.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/structure.py?rev=14667&r1=14666&r2=14667&view=diff ============================================================================== --- 1.3/gui/user_functions/structure.py (original) +++ 1.3/gui/user_functions/structure.py Fri Sep 16 14:46:37 2011 @@ -34,7 +34,7 @@ # GUI module imports. from base import UF_base, UF_page from gui.interpreter import Interpreter; interpreter = Interpreter() -from gui.misc import float_to_gui, gui_to_bool, gui_to_float, gui_to_int, gui_to_str, str_to_gui +from gui.misc import float_to_gui, gui_to_bool, gui_to_float, gui_to_int, gui_to_int_or_list, gui_to_str, gui_to_str_or_list, str_to_gui from gui.paths import WIZARD_IMAGE_PATH @@ -326,10 +326,10 @@ # The args. file = gui_to_str(self.file.GetValue()) - read_mol = gui_to_str(self.read_mol.GetValue()) - set_mol_name = gui_to_str(self.set_mol_name.GetValue()) - read_model = gui_to_str(self.read_model.GetValue()) - set_model_num = gui_to_str(self.set_model_num.GetValue()) + read_mol = gui_to_int_or_list(self.read_mol.GetValue()) + set_mol_name = gui_to_str_or_list(self.set_mol_name.GetValue()) + read_model = gui_to_int_or_list(self.read_model.GetValue()) + set_model_num = gui_to_int_or_list(self.set_model_num.GetValue()) parser = gui_to_str(self.parser.GetValue()) # Execute the user function.