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

SPAHM(b) generation #71

Open
jvschleicher opened this issue Jun 28, 2024 · 0 comments · May be fixed by #72
Open

SPAHM(b) generation #71

jvschleicher opened this issue Jun 28, 2024 · 0 comments · May be fixed by #72
Assignees
Labels
bug Something isn't working

Comments

@jvschleicher
Copy link

running: python -m qstack.spahm.rho.bond --ecp ccpvdzpp --same_basis --mol mol.inp --name mol.npy

gives the following error (the molecules contain heavy atoms up to I, including Pd):

all_atoms = np.array([mol.elements for mol in mols])
Traceback (most recent call last):
File "/home//miniconda3/envs/qstack/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home//miniconda3/envs/qstack/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home//miniconda3/envs/qstack/lib/python3.9/site-packages/qstack/spahm/rho/bond.py", line 204, in
main()
File "/home//miniconda3/envs/qstack/lib/python3.9/site-packages/qstack/spahm/rho/bond.py", line 192, in main
reps = get_repr(mols, xyzlist, args.guess, xc=args.xc, spin=spin, readdm=args.readdm, printlevel=args.print,
File "/home//miniconda3/envs/qstack/lib/python3.9/site-packages/qstack/spahm/rho/bond.py", line 119, in get_repr
allvec = bond(mols, dms, bpath, cutoff, omods,
File "/home//miniconda3/envs/qstack/lib/python3.9/site-packages/qstack/spahm/rho/bond.py", line 61, in bond
DM = utils.dm_open_mod(dm, omod) if spin else dm
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@YAY-C YAY-C linked a pull request Jun 30, 2024 that will close this issue
3 tasks
@YAY-C YAY-C self-assigned this Jul 2, 2024
@YAY-C YAY-C added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants