Skip to content

Add QCSchema Basis#280

Open
wilhadams wants to merge 5 commits intotheochem:mainfrom
wilhadams:qcschema_basis
Open

Add QCSchema Basis#280
wilhadams wants to merge 5 commits intotheochem:mainfrom
wilhadams:qcschema_basis

Conversation

@wilhadams
Copy link
Copy Markdown
Collaborator

This adds the QCSchema basis load_one and dump_one. I wouldn't ever use this schema over the Basis Set Exchange's basis schema, which is just slightly incompatible with this schema for unknown reasons. In future it would probably be better to use the BSE python module for converting basis set data.

@wilhadams wilhadams requested a review from tovrstra September 12, 2021 21:08
@tovrstra
Copy link
Copy Markdown
Member

Comment thread iodata/formats/json.py
if "ecp_electrons" in center_data[center]:
ecp_electrons = center["ecp_electrons"]
else:
ecp_electrons = 0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ecp_electrons is not used.

Comment thread iodata/formats/json.py
)
angmoms = shell["angular_momentum"]
exps = np.array(shell["exponents"])
coeffs = np.array([[x for x in segment] for segment in shell["coefficients"]])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be simplified?

Suggested change
coeffs = np.array([[x for x in segment] for segment in shell["coefficients"]])
coeffs = np.array(shell["coefficients"])

@tovrstra
Copy link
Copy Markdown
Member

@wilhadams Thanks for the PR. Please let me know if you'd like me to review it a more in depth.

@tovrstra tovrstra mentioned this pull request Jul 8, 2024
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

Successfully merging this pull request may close these issues.

2 participants