mailr9547 - /1.3/generic_fns/structure/main.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 21, 2009 - 16:20:
Author: bugman
Date: Mon Sep 21 16:20:58 2009
New Revision: 9547

URL: http://svn.gna.org/viewcvs/relax?rev=9547&view=rev
Log:
Fix for the missing PDB file error.

The extension '.pdb' was being added to the end so if the missing file 
'1F3Y.pdb' was specified,
the RelaxError would say that '1F3Y.pdb.pdb' was missing.


Modified:
    1.3/generic_fns/structure/main.py

Modified: 1.3/generic_fns/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/main.py?rev=9547&r1=9546&r2=9547&view=diff
==============================================================================
--- 1.3/generic_fns/structure/main.py (original)
+++ 1.3/generic_fns/structure/main.py Mon Sep 21 16:20:58 2009
@@ -216,12 +216,13 @@
 
     # Try adding '.pdb' to the end of the file path, if the file can't be 
found.
     if not access(file_path, F_OK):
+        file_path_orig = file_path
         file_path = file_path + '.pdb'
 
     # Test if the file exists.
     if not access(file_path, F_OK):
         if fail:
-            raise RelaxFileError('PDB', file_path)
+            raise RelaxFileError('PDB', file_path_orig)
         else:
             warn(RelaxNoPDBFileWarning(file_path))
             return




Related Messages


Powered by MHonArc, Updated Mon Sep 21 19:00:02 2009