Problem with importing from Psi4 .fchk

I don’t know whether this is a bug with Avogadro or Psi4 generate a wrong fchk format.
I can’t compare it with Gaussian fchk because I don’t have it.

Environment Information

Avogadro version: 1.2.0
Operating system and version:macOS 10.14(18A391)

Expected Behavior

Rendering Orbitals works well
The fchk file on this site works well in my Environment.
http://www.lct.jussieu.fr/manuels/Gaussian98/show/mogvcm001.htm

Actual Behavior

Avogadro only displays the molecule but doesn’t show orbital nor orbital energy.

Steps to Reproduce

This is the fchk file of CH4 from Psi4

Apologies for “necrobumping” but this person never got an answer and it may help someone. Seems like for Avogadro to read the orbitals the section in the .fchk file needs to read:

Number of independent functions I 35
Alpha MO coefficients R N= 1225

In the file provided (line 78 and 332) it reads:

MO coefficients (C) R N= 1225

I’ll point out that Gaussian documented their format and the Alpha MO coefficients (or Beta) is clear (i.e., it’s a bug with Psi IMHO).

But the appropriate code in Avogadro would be here:

1 Like

I’ll see if psi4 still formats the fchk this way and bring it up in their forum if it does

1 Like

I should be able to patch our code, but I’m sure we’re not the only one who coded like that based on Gaussian’s files and documentation.

So maybe its better for them to adjust to everyone else

I think they should definitely match the Gaussian example, since I doubt we’re the only program using those strings.

In the meantime: