Author: bugman Date: Tue Apr 8 11:30:10 2008 New Revision: 5416 URL: http://svn.gna.org/viewcvs/relax?rev=5416&view=rev Log: Shifted structural_data from a class varible to an instance varible in the API base class. This uses the __init__() function now. 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=5416&r1=5415&r2=5416&view=diff ============================================================================== --- 1.3/generic_fns/structure/api_base.py (original) +++ 1.3/generic_fns/structure/api_base.py Tue Apr 8 11:30:10 2008 @@ -34,8 +34,12 @@ class Str_object: """The structural object base class.""" - # The parser specific data object. - structural_data = [] + + def __init__(self): + """Initialise the PDB object.""" + + # The parser specific data object. + self.structural_data = [] def atom_add(self, atom_id=None, record_name='', atom_name='', res_name='', chain_id='', res_num=None, pos=[None, None, None], segment_id='', element=''):