Exemplo n.º 1
0
 def smooth_path(self, images, **kwargs):
     mindist = self.get_mindist()
     path = smoothPath(images, mindist, interpolator=interpolate_spins)
     return path
Exemplo n.º 2
0
 def smooth_path(self, path, **kwargs):
     mindist = self.get_mindist()
     return smoothPath(path, mindist, interpolator=self.aasystem.interpolate, **kwargs)
Exemplo n.º 3
0
 def smooth_path(self, path, **kwargs):
     mindist = self.get_mindist()
     return smoothPath(path, mindist, **kwargs)
Exemplo n.º 4
0
 def smooth_path(self, path, **kwargs):
     mindist = self.get_mindist()
     return smoothPath(path,
                       mindist,
                       interpolator=self.aasystem.interpolate,
                       **kwargs)
Exemplo n.º 5
0
 def smooth_path(self, images, **kwargs):
     mindist = self.get_mindist()
     path = smoothPath(images, mindist, interpolator=interpolate_spins)
     return path
Exemplo n.º 6
0
 def smooth_path(self, path, **kwargs):
     mindist = self.get_mindist()
     return smoothPath(path, mindist, **kwargs)
Exemplo n.º 7
0
eofs = "path.EofS"
print "saving energies to", eofs 
with open(eofs, "w") as fout:
    for i in range(len(S)):
        fout.write("%f %f\n" % (S[i], energies[i]))


xyzfile = "path.xyz"
print "saving path in xyz format to", xyzfile
with open(xyzfile, "w") as fout:
    for m in mints:
        write_xyz(fout, m.coords, title=str(m.energy))


xyzfile = "path.smooth.xyz"
print "saving smoothed path in xyz format to", xyzfile
clist = [m.coords for m in mints]
smoothed = smoothPath(clist, mindist)
with open(xyzfile, "w") as fout:
    for coords in smoothed:
        write_xyz(fout, coords)

if False:
    try:
        import matplotlib.pyplot as plt
        plt.plot(S, energies)
        plt.show()
    except:
        print "problem plotting with pyplot, skipping"
        pass
Exemplo n.º 8
0
nts = nmin - 1
print "the path has %d minima and %d transition states" % (nmin, nts)
eofs = "path.EofS"
print "saving energies to", eofs
with open(eofs, "w") as fout:
    for i in range(len(S)):
        fout.write("%f %f\n" % (S[i], energies[i]))

xyzfile = "path.xyz"
print "saving path in xyz format to", xyzfile
with open(xyzfile, "w") as fout:
    for m in mints:
        write_xyz(fout, m.coords, title=str(m.energy))

xyzfile = "path.smooth.xyz"
print "saving smoothed path in xyz format to", xyzfile
clist = [m.coords for m in mints]
smoothed = smoothPath(clist, mindist)
with open(xyzfile, "w") as fout:
    for coords in smoothed:
        write_xyz(fout, coords)

if False:
    try:
        import matplotlib.pyplot as plt

        plt.plot(S, energies)
        plt.show()
    except ImportError:
        print "problem plotting with pyplot, skipping"