Skip to content

Commit

Permalink
remove unnecessary squeeze()
Browse files Browse the repository at this point in the history
  • Loading branch information
YAY-C committed Oct 23, 2024
1 parent ead08aa commit ca8b08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qstack/spahm/rho/bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_repr(mols, xyzlist, guess, xc=defaults.xc, spin=None, readdm=None,
atidx = np.where(np.array([[1]*len(zin) + [0]*(natm-len(zin)) for zin in all_atoms]).flatten())
allvec = allvec.reshape(shape)[:,atidx,:].reshape(shape)
all_atoms = list(chain.from_iterable(all_atoms))
allvec = allvec.squeeze()
#allvec = allvec.squeeze()
elif with_symbols:
msg = f"You can not use 'split=True' and 'with_symbols=True' at the same time!"
raise RuntimeError()
Expand Down

0 comments on commit ca8b08b

Please sign in to comment.