[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IMP-dev] Fragment.set_residue_indexes



dear all,

we tried to set the indexes of a fragment explicitly. however, the procedure seems to be incredibly slow in the following example where we tried to add residue numbers to a particle 'frag' (set up as a fragment). somehow, the last line takes ages (dies?).
any hints would be appreciated.

thanks

pia & frido

    rs= IMP.Ints()
    for ii in (ifirst, ilast+1):
    	rs.append(ii)
    tfrag = IMP.atom.Fragment(frag)
    tfrag.set_residue_indexes(rs)