Author: bugman Date: Mon Jan 31 14:51:21 2011 New Revision: 12462 URL: http://svn.gna.org/viewcvs/relax?rev=12462&view=rev Log: Removed the molecule name generation from the entity data, as the entity data is not always there. This fixes a crash when reading BMRB files with no entity saveframe. Modified: branches/bmrb/generic_fns/relax_data.py Modified: branches/bmrb/generic_fns/relax_data.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/relax_data.py?rev=12462&r1=12461&r2=12462&view=diff ============================================================================== --- branches/bmrb/generic_fns/relax_data.py (original) +++ branches/bmrb/generic_fns/relax_data.py Mon Jan 31 14:51:21 2011 @@ -245,12 +245,6 @@ ri_label = data['data_type'] frq = float(data['frq']) * 1e6 frq_label = str(int(float(data['frq']))) - - # Convert entity IDs to molecule names. - mol_names = [] - names = get_molecule_names() - for id in data['entity_ids']: - mol_names.append(names[int(id)-1]) # Pack the data. pack_data(ri_label, frq_label, frq, data['data'], data['errors'], res_nums=data['res_nums'], res_names=data['res_names'], spin_nums=None, spin_names=data['atom_names'], gen_seq=True)