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

error on line 966, in generate_frag_cas_guess #1

Closed
SinaChini opened this issue Mar 8, 2019 · 1 comment
Closed

error on line 966, in generate_frag_cas_guess #1

SinaChini opened this issue Mar 8, 2019 · 1 comment

Comments

@SinaChini
Copy link

SinaChini commented Mar 8, 2019

full error decription:
File "lasscf_calc.py", line 102, in
me2n2_dmet.generate_frag_cas_guess (mf, CASlist)
File "/panfs/roc/groups/0/cramercj/chini006/mrh/my_dmet/main_object.py", line 966, in generate_frag_cas_guess
amo_new_coeff = np.append (mo_coeff[:,ncore_target:ncore_current], mo_coeff[:,nocc_current:nocc_target], axis=1)
TypeError: 'RHF' object is not subscriptable

Thanks,
Sina

@MatthewRHermes
Copy link
Owner

That is not a bug in generate_frag_cas_guess, that is a bug in lasscf_calc.py. Is that one of the example scripts? I'm sorry, I haven't gotten around to fixing them yet. But generate_frag_cas_guess should be passed with mf.mo_coeff, not mf. It's the same as the problem with your DNA calculation from earlier.

MatthewRHermes pushed a commit that referenced this issue Apr 2, 2021
Example debug code + logger convention + bugfix
MatthewRHermes pushed a commit that referenced this issue Dec 13, 2022
MatthewRHermes pushed a commit that referenced this issue Jun 5, 2023
MatthewRHermes pushed a commit that referenced this issue Feb 19, 2024
cjknight pushed a commit to cjknight/mrh that referenced this issue Jul 16, 2024
Sync w/ gpu branch and helper functions
MatthewRHermes pushed a commit that referenced this issue Aug 8, 2024
…d_calling

Lassipdft mem management and calling
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

2 participants