Hi, You could fix this by trying the following. Try the statement: if self.unres and not isinstance(self.unres, str) and not isinstance(self.unres, DummyFileObject): You will need to import the DummyFileObject from relax_io. This might require some testing. These type checks are important for the scripting side as it prevents users from making silly mistakes. For the GUI it is not so important, as the GUI checks and controls the input. Regards, Edward On 27 July 2010 05:53, <michael.bieri@xxxxxxxxxxxxx> wrote:
Author: michaelbieri Date: Tue Jul 27 05:53:09 2010 New Revision: 11359 URL: http://svn.gna.org/viewcvs/relax?rev=11359&view=rev Log: Check of variable 'unres' is switched off temorary, as the GUI hands over a relax dummy file to relax. Modified: branches/bieri_gui/auto_analyses/dauvergne_protocol.py Modified: branches/bieri_gui/auto_analyses/dauvergne_protocol.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/auto_analyses/dauvergne_protocol.py?rev=11359&r1=11358&r2=11359&view=diff ============================================================================== --- branches/bieri_gui/auto_analyses/dauvergne_protocol.py (original) +++ branches/bieri_gui/auto_analyses/dauvergne_protocol.py Tue Jul 27 05:53:09 2010 @@ -520,9 +520,9 @@ if len(labels) == 1: raise RelaxError("Relaxation data at multiple magnetic field strengths is essential for this analysis.") - # Unresolved and exclude files. - if self.unres and not isinstance(self.unres, str): - raise RelaxError("The unres user variable '%s' is incorrectly set. It should either be a string or None." % self.unres) + # Unresolved and exclude files. FIXME + #if self.unres and not isinstance(self.unres, str): + # raise RelaxError("The unres user variable '%s' is incorrectly set. It should either be a string or None." % self.unres) if self.exclude and not isinstance(self.exclude, str): raise RelaxError("The exclude user variable '%s' is incorrectly set. It should either be a string or None." % self.exclude) _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@xxxxxxx To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits