Author: bugman Date: Sun Oct 11 18:51:55 2009 New Revision: 9736 URL: http://svn.gna.org/viewcvs/relax?rev=9736&view=rev Log: bmrb_write_software() now throws a RelaxError if no software has been specified. Modified: branches/bmrb/generic_fns/exp_info.py Modified: branches/bmrb/generic_fns/exp_info.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/exp_info.py?rev=9736&r1=9735&r2=9736&view=diff ============================================================================== --- branches/bmrb/generic_fns/exp_info.py (original) +++ branches/bmrb/generic_fns/exp_info.py Sun Oct 11 18:51:55 2009 @@ -68,8 +68,9 @@ # The program info. star.software.add(name=software.name, version=software.version, vendor_name=software.vendor_name, vendor_eaddress=software.url, task=software.tasks) - # Throw a warning. + # relax cannot be the only program used! else: + raise RelaxError("relax cannot be the only program used in the analysis - spectral analysis programs, etc. must also have been used. Please use the relevant BMRB user functions to specify these.") def software(name=None, version=None, url=None, vendor_name=None, cite=None, tasks=None):