Author: bugman Date: Wed Oct 31 18:52:32 2012 New Revision: 17945 URL: http://svn.gna.org/viewcvs/relax?rev=17945&view=rev Log: Converted the RelaxError introduced in r17944 to a RelaxWarning. There are some cases where deselection of all spins is ok, for example an analysis using the local tm models where some models are run but skipped when they have too many parameters. Modified: trunk/specific_fns/model_free/main.py Modified: trunk/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/trunk/specific_fns/model_free/main.py?rev=17945&r1=17944&r2=17945&view=diff ============================================================================== --- trunk/specific_fns/model_free/main.py (original) +++ trunk/specific_fns/model_free/main.py Wed Oct 31 18:52:32 2012 @@ -33,7 +33,7 @@ from generic_fns.mol_res_spin import count_spins, exists_mol_res_spin_data, find_index, return_spin, return_spin_from_index, return_spin_indices, spin_loop import specific_fns from relax_errors import RelaxError, RelaxFault, RelaxFuncSetupError, RelaxNoModelError, RelaxNoSequenceError, RelaxNoTensorError, RelaxTensorError -from relax_warnings import RelaxDeselectWarning +from relax_warnings import RelaxDeselectWarning, RelaxWarning from user_functions.data import Uf_tables; uf_tables = Uf_tables() from user_functions.objects import Desc_container @@ -2032,7 +2032,7 @@ # No spins selected, so fail hard to prevent the user from going any further. if spin_count == 0: - raise RelaxError("No spins are selected, therefore the optimisation or calculation cannot proceed.") + warn(RelaxWarning("No spins are selected therefore the optimisation or calculation cannot proceed.")) # Final printout. if verbose and not deselect_flag: