Author: bugman Date: Wed Apr 16 22:43:03 2008 New Revision: 5810 URL: http://svn.gna.org/viewcvs/relax?rev=5810&view=rev Log: Added the structural API base class method num_str(). This base class method is not a stub, but returns the length of 'self.structural_data'. Modified: 1.3/generic_fns/structure/api_base.py Modified: 1.3/generic_fns/structure/api_base.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/api_base.py?rev=5810&r1=5809&r2=5810&view=diff ============================================================================== --- 1.3/generic_fns/structure/api_base.py (original) +++ 1.3/generic_fns/structure/api_base.py Wed Apr 16 22:43:03 2008 @@ -156,6 +156,16 @@ raise RelaxImplementError + def num_str(self): + """Method for returning the number of structures (i.e. number of NMR models, etc.). + + @return: The number of structures. + @rtype: int + """ + + return len(self.structural_data) + + def terminate(self, atom_id_ext='', res_num=None): """Prototype method stub for terminating the structural chain.