Author: bugman Date: Tue Jul 27 10:14:12 2010 New Revision: 11366 URL: http://svn.gna.org/viewcvs/relax?rev=11366&view=rev Log: The select.read() and deselect.read() user functions can now accept file handles or dummy file objects. Modified: 1.3/prompt/deselect.py 1.3/prompt/select.py Modified: 1.3/prompt/deselect.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/deselect.py?rev=11366&r1=11365&r2=11366&view=diff ============================================================================== --- 1.3/prompt/deselect.py (original) +++ 1.3/prompt/deselect.py Tue Jul 27 10:14:12 2010 @@ -143,7 +143,7 @@ print(text) # The argument checks. - arg_check.is_str(file, 'file name') + arg_check.is_str_or_inst(file, 'file name') arg_check.is_str(dir, 'directory name', can_be_none=True) arg_check.is_int(spin_id_col, 'spin ID string column', can_be_none=True) arg_check.is_int(mol_name_col, 'molecule name column', can_be_none=True) Modified: 1.3/prompt/select.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/select.py?rev=11366&r1=11365&r2=11366&view=diff ============================================================================== --- 1.3/prompt/select.py (original) +++ 1.3/prompt/select.py Tue Jul 27 10:14:12 2010 @@ -172,7 +172,7 @@ print(text) # The argument checks. - arg_check.is_str(file, 'file name') + arg_check.is_str_or_inst(file, 'file name') arg_check.is_str(dir, 'directory name', can_be_none=True) arg_check.is_int(spin_id_col, 'spin ID string column', can_be_none=True) arg_check.is_int(mol_name_col, 'molecule name column', can_be_none=True)