mailr7395 - /1.3/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on September 27, 2008 - 01:08:
Author: bugman
Date: Sat Sep 27 01:08:40 2008
New Revision: 7395

URL: http://svn.gna.org/viewcvs/relax?rev=7395&view=rev
Log:
The load_pdb() method now returns True if the file was loaded or False 
otherwise.


Modified:
    1.3/generic_fns/structure/internal.py

Modified: 1.3/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=7395&r1=7394&r2=7395&view=diff
==============================================================================
--- 1.3/generic_fns/structure/internal.py (original)
+++ 1.3/generic_fns/structure/internal.py Sat Sep 27 01:08:40 2008
@@ -779,6 +779,8 @@
         @type model:        int
         @keyword verbosity: A flag which if True will cause messages to be 
printed.
         @type verbosity:    bool
+        @return:            The status of the loading of the PDB file.
+        @rtype:             bool
         """
 
         # Initial print out.
@@ -787,7 +789,7 @@
 
         # Test if the file exists.
         if not access(file_path, F_OK):
-            return
+            return False
 
         # Set the file name and path.
         expanded = path.split(file_path)
@@ -832,6 +834,9 @@
             self.structural_data.append(Structure_container())
             self.structural_data[-1].model = model_num
             self.__fill_object_from_pdb(records, len(self.structural_data)-1)
+
+        # Loading worked.
+        return True
 
 
     def write_pdb(self, file, struct_index=None):




Related Messages


Powered by MHonArc, Updated Sat Sep 27 01:20:06 2008