Protool/energy.py
def find_coordinates_extremes(self):
        """Find the extremes of coordinates in all three directions"""
        minx=99999.9
        maxx=-99999
        miny=99999
        maxy=-999999
        minz=999999
        maxz=-999999
        for atom in self.atoms.keys():
            X=self.atoms[atom]['X']
            Y=self.atoms[atom]['Y']
            Z=self.atoms[atom]['Z']
            minx=min(minx,X)
            maxx=max(maxx,X)
            miny=min(miny,Y)
            maxy=max(maxy,Y)
            minz=min(minz,Z)
            maxz=max(maxz,Z)
        return minx,maxx,miny,maxy,minz,maxz
Find the extremes of coordinates in all three directions
Find the extremes of coordinates in all three directions
Find the extremes of coordinates in all three directions
def find_coordinates_extremes(self):
        minx=99999.9
        maxx=-99999
        miny=99999
        maxy=-999999
        minz=999999
        maxz=-999999
        for atom in self.atoms.keys():
            X=self.atoms[atom]['X']
            Y=self.atoms[atom]['Y']
            Z=self.atoms[atom]['Z']
            minx=min(minx,X)
            maxx=max(maxx,X)
            miny=min(miny,Y)
            maxy=max(maxy,Y)
            minz=min(minz,Z)
            maxz=max(maxz,Z)
        return minx,maxx,miny,maxy,minz,maxz
def find_coordinates_extremes ( self ) : minx = 99999.9 maxx = - 99999 miny = 99999 maxy = - 999999 minz = 999999 maxz = - 999999 for atom in self . atoms . keys ( ) : X = self . atoms [ atom ] [ 'X' ] Y = self . atoms [ atom ] [ 'Y' ] Z = self . atoms [ atom ] [ 'Z' ] minx = min ( minx , X ) maxx = max ( maxx , X ) miny = min ( miny , Y ) maxy = max ( maxy , Y ) minz = min ( minz , Z ) maxz = max ( maxz , Z ) return minx , maxx , miny , maxy , minz , maxz
Find the extremes of coordinates in all three directions
Find the extremes of coordinates in all three directions
"""Find the extremes of coordinates in all three directions"""
self