Comments (2)
Thanks for getting back to me so quickly. I seem to have misread the shape of the coordinate array ... Good to know the library is fine and that the error is on my side.
from trexio.
Hello,
I think that you are confused by the column-major ordering :-)
In the documentation, the nuclear coordinates are:
coord float (3,nucleus.num) Coordinates of the atoms
So in Python, if you use the default ordering (row major), you are supposed to make a numpy array of shape (nucleus_num, 3)
. This is indeed what you do:
coords3d = np.zeros((2, 3))
and everything is fine.
For the MO coefficients, the documentation states that it is:
coefficient float (ao.num, mo.num)
So in Python, you should use a numpy array of shape (mo_num, ao_num)
where mo_num = 2*ao_num
in your particular case. But your MO coefficients array in Python has shape (ao_num, mo_num)
, which is wrong.
Thanks for giving feedback. As you are the 2nd person getting confused with this, we will try to make things clearer in the documentation.
Sorry for the confusion...
from trexio.
Related Issues (20)
- Still reachable memory reported by Valgrind
- pkg-config is broken after HDF5 detection rewriting
- External group HOT 2
- Loss of precision in Python HOT 3
- Versioning of python packages HOT 2
- pip installation without HDF5 installed. HOT 12
- trexio --without-hdf5 needs hdf5 HOT 3
- Multidimensional lists not flatten correctly in Python front end HOT 3
- `TREXIO` group indirection in HDF5 backend HOT 1
- Add the ability to read arbitrary hyper-rectangles of dense arrays
- MacOS ARM64 runners HOT 4
- Name convention for trexio_open HOT 6
- Import only used variables and procedures HOT 4
- Static and dynamic library compilation with cmake result in static library only HOT 7
- Fortran interface to write reciprocal lattice vectors is broken HOT 4
- Generally contracted basis sets and number of primitives HOT 1
- Partial ECPs HOT 3
- verbose error reporting HOT 2
- Does the TREXIO format support Cartesian contaminants? HOT 3
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 trexio.