Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'PyscfMolecularData' object has no attribute 'general_calculations' #63

Open
KurariJ opened this issue Aug 10, 2022 · 0 comments
Open

Comments

@KurariJ
Copy link

KurariJ commented Aug 10, 2022

I run the run_pyscf from openfermionpyscf for an molecular object, loaded from hdf5 molecular file with MolecularData. Then I got the error: 'PyscfMolecularData' object has no attribute 'general_calculations'.

package versions:
openfermion 1.5.0
openfermionpyscf 0.5
pyscf 2.0.1

Code:
from openfermion.chem import MolecularData
from openfermionpyscf import run_pyscf
mol_name = 'H6_0.8.hdf5'
molecule_of = MolecularData(filename=mol_name)
molecule_of.load()
mol = run_pyscf(molecule_of, run_fci=1)

Err info:
----> 4 mol = run_pyscf(molecule_of, run_fci=1)

~/miniconda3/envs/env1/lib/python3.7/site-packages/openfermionpyscf/_run_pyscf.py in run_pyscf(molecule, run_scf, run_mp2, run_cisd, run_ccsd, run_fci, verbose)
203 pyscf_molecular_data = PyscfMolecularData.new(PyscfMolecularData)
204 pyscf_molecular_data.dict.update(molecule.dict)
--> 205 pyscf_molecular_data.save()
206 return pyscf_molecular_data
207

~/miniconda3/envs/env1/lib/python3.7/site-packages/openfermion/chem/molecular_data.py in save(self)
698
699 # Save general calculation data
--> 700 key_list = list(self.general_calculations.keys())
701 f.create_dataset("general_calculations_keys",
702 data=([numpy.string_(key) for key in key_list]

AttributeError: 'PyscfMolecularData' object has no attribute 'general_calculations'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant