-
Notifications
You must be signed in to change notification settings - Fork 48
Description
I've noticed something that seems a bit unclear (and hopefully this post might provide clarity for others).
The trexio.write_eri function always writes the input ERIs as if they are in the MO basis (i.e. it writes them under mo_2e_int in the trexio h5 file), but in some of the tests, the AO ERIs are passed to this function (1, 2), so when used in this way, the trexio h5 output will contain the AO ERIs labeled incorrectly as MO ERIs.
It might be clearer to rename the function to write_mo_eri or maybe to provide another argument to select AOs or MOs?
It might also make sense to make a function that takes the scf object, and that will contain everything needed to get the ERIs in either basis.
My usual workflow is to get the AO ERIs with mol.intor('int2e') and then ao2mo.kernel(eri_ao, mf.mo_coeff) to get the MO ERIs if needed, but I wouldn't be surprised if there were maybe cleaner ways to do this that I'm not aware of (e.g. I didn't know about scf._eri)