There is a problem with the dummy file as the function reading the file
requires a string:
Traceback (most recent call last):
File "gui_bieri/analyses/auto_rx_base.py", line 402, in execute_thread
File "auto_analyses/relax_fit.py", line 87, in __init__
File "auto_analyses/relax_fit.py", line 124, in run
File "prompt/deselect.py", line 146, in read
File "arg_check.py", line 495, in is_str
raise RelaxStrError(name, arg)
relax_errors.RelaxStrError: RelaxError: The file name argument
'<relax_io.DummyFileObject instance at 0x9ea1f8c>' must be a string.
Can this get solved by changing arg_check.py or do I have to call the
relax_io.DummyFileObject differently?
Edward d'Auvergne wrote:
> This should be a nice short term fix. This can be redesigned in the
> future to use more of the functionality already present in relax, i.e.
> all the select and deselect user fns.
>
> Cheers,
>
> Edward
>
>
>
>
> On 12 April 2010 04:37, <[email protected]> wrote:
>
>> Author: michaelbieri
>> Date: Mon Apr 12 04:37:43 2010
>> New Revision: 11062
>>
>> URL: http://svn.gna.org/viewcvs/relax?rev=11062&view=rev
>> Log:
>> relaxGUI creates a dummy file for unresolved spins that will be used in
>> relax_fit.py
>>
>> Modified:
>> branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py
>>
>> Modified: branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py
>> URL:
>> http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py?rev=11062&r1=11061&r2=11062&view=diff
>> ==============================================================================
>> --- branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py (original)
>> +++ branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py Mon Apr 12
>> 04:37:43 2010
>> @@ -26,6 +26,7 @@
>>
>> # Python module imports.
>> from os import sep
>> +from string import replace
>> import sys
>> import thread
>> import time
>> @@ -34,6 +35,7 @@
>> # relax module imports.
>> from auto_analyses.relax_fit import Relax_fit
>> from data import Relax_data_store; ds = Relax_data_store()
>> +from relax_io import DummyFileObject
>>
>> # relaxGUI module imports.
>> from gui_bieri.analyses.project import open_file
>> @@ -265,7 +267,12 @@
>> data.mc_num = 500
>>
>> # Unresolved resiudes
>> - data.unresolved = self.data.unresolved
>> + file = DummyFileObject
>> + entries = self.data.unresolved
>> + entries = replace(entries, ',', '\n')
>> + file.write(entries)
>> + file.close()
>> + data.unresolved = file
>>
>> # Structure File
>> data.structure_file = self.data.structure_file
>>
>>
>> _______________________________________________
>> relax (http://nmr-relax.com)
>>
>> This is the relax-commits mailing list
>> [email protected]
>>
>> 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
>>
>>
>
> _______________________________________________
> relax (http://nmr-relax.com)
>
> This is the relax-devel mailing list
> [email protected]
>
> 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-devel
>
>
>
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-devel mailing list
[email protected]
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-devel