Comments (3)
Thanks for the issue report, you are correct that this line contains a mistake:
geomeTRIC/geometric/optimize.py
Line 219 in 9981b39
The context is that
-
coordsys="prim"
is mainly implemented for reference in geomeTRIC and is not as high-performing as other options such ascoordsys="tric"
orcoordsys="dlc"
. Therefore it is recommended that you use the default coordinate system or one of the two latter options. -
The
conmethod
keyword refers to the algorithm for constrained optimization, and constrained optimizations are only possible when usingcoordsys="tric"
orcoordsys="dlc"
. Theconmethod
attribute does not exist in the other coordinate systems. Therefore, line 219 of optimize.py is a bug that causes errors only when using coordinate systems other than"tric"
or"dlc"
. I missed this bug because I seldom use any coordinate system other than those two.
To fix the bug, you should be able to change the code to something like this:
IC1 = self.IC.__class__(newmol, connect=self.IC.connect, addcart=self.IC.addcart, build=False, conmethod=self.IC.conmethod if hasattr(self.IC, 'conmethod') else 0)
It will first check to see if the conmethod
attribute exists before using its value. If the attribute does not exist then it will use zero and the PrimitiveInternalCoordinates
class should ignore it. You can submit a PR with this fix or I can fix it myself when I have a free moment.
Thanks,
- Lee-Ping
from geometric.
Thank you for your comprehensive explanation, the PR #161 is submitted, and I thought this would be a little bit more elegant.
from geometric.
Thank you. :) I merged your changes. Thanks for your patience.
from geometric.
Related Issues (20)
- xTB support request HOT 7
- versioneer does not work with Python 3.12
- How to input Hessian HOT 4
- Breaking certain bonds and getting invidual atoms as fragments with 3 degress of freedom HOT 2
- Using ORCA via ASE with customized input file HOT 4
- Automatically assigned tmin may become too small HOT 52
- Hessian update after rejected step HOT 4
- Ideas for finite_difference_grad.py HOT 4
- permit Hessian computation through Engine? HOT 5
- [Minor BUG]: pip installation HOT 1
- Interactive optimization HOT 3
- ORCA converges in 8 steps, geomeTRIC gets stuck HOT 41
- Issue installing with Python 3.12 HOT 3
- Separate handling of empirical geometry-dependent corrections HOT 1
- Optimization of molecular crystals (and other periodic systems) HOT 1
- optimizeGeometry doesn't converge, although optimization seems okay HOT 2
- [PYSCF] Geometry Optimisation - No message of failing to converge within the maxsteps HOT 1
- Sign Error with `frequency_analysis` function HOT 1
- Error with latest code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometric.