adamfrees / nudgedelasticband Goto Github PK
View Code? Open in Web Editor NEWImplementation of the Nudged Elastic Band (NEB) method for finding saddle points.
Implementation of the Nudged Elastic Band (NEB) method for finding saddle points.
Dear Adamfrees,
I really like your clean implementation of the NEB algorithm, unfortunately, it does not seem to work.
steps to reproduce:
$ git clone https://github.com/adamfrees/NudgedElasticBand
$ cd NudgedElasticBand
$ python test_case.py
Traceback (most recent call last):
File "test_case.py", line 19, in <module>
results = NEB(51,np.array([-2.*np.pi,0]),np.array([2.*np.pi,0]),potential)
File "/Users/laurenzi/NudgedElasticBand/NEB.py", line 155, in NEB
force = np.array([x for x in currentForces if x is not None]).flatten()
File "/Users/laurenzi/NudgedElasticBand/NEB.py", line 155, in <listcomp>
force = np.array([x for x in currentForces if x is not None]).flatten()
File "/Users/laurenzi/NudgedElasticBand/NEB.py", line 148, in <lambda>
currentSprings = map(lambda x,y: getParallelSpring(x,y,currentImages,k),currentImages,currentTangents)
File "/Users/laurenzi/NudgedElasticBand/NEB.py", line 107, in getParallelSpring
return k*amp*tangent
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
EDIT:
Sorry, tested with python 2.7, everything works as expected
portability to python 3 shouldn't be too hard though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.