Changeset 4e219a3 for protein.py


Ignore:
Timestamp:
09/05/08 11:49:43 (16 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
a52fb83
Parents:
229cc35
Message:

Update Lund init and BG/P compatibility.

  • Moved call of init_lundff after initialization of the molecule. The Lund

force field needs the molecule to calculate the hydrophobicity matrix.

  • Added bgp target to Makefile to compile SMMP on a BlueGene/P
  • Split if statement in setmvs to avoid out-of-range warning for array

access.

  • Changed setup of boundaries in Protein.zimmer() to match new version of

numpy.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@15 26dc1dd8-5c4e-0410-9ffe-d298b4865968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protein.py

    r229cc35 r4e219a3  
    264264       
    265265    def zimmer(self):
    266         first = smmp.mol_i.irsml1[self.__id][0] - 1
    267         last = smmp.mol_i.irsml2[self.__id][0] - 1
    268         nrs = smmp.mol_i.irsml2[smmp.mol_i.ntlml - 1][0] - 1
     266        first = smmp.mol_i.irsml1[self.__id] - 1
     267        last = smmp.mol_i.irsml2[self.__id]
     268        nrs = smmp.mol_i.irsml2[smmp.mol_i.ntlml - 1] - 1
    269269        smmp.zimmer(last)
    270270        return smmp.zimme.zimm[first:last]
    271271
    272272    def __len__(self):
    273         return smmp.mol_i.irsml2[self.__id]  - smmp.mol_i.irsml1[self.__id]
     273        return smmp.mol_i.irsml2[self.__id]  - smmp.mol_i.irsml1[self.__id] + 1
    274274
    275275
Note: See TracChangeset for help on using the changeset viewer.