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

Add new periodic module and tests #27

Merged
merged 5 commits into from
Feb 25, 2024
Merged

Add new periodic module and tests #27

merged 5 commits into from
Feb 25, 2024

Conversation

marco-2023
Copy link
Collaborator

@marco-2023 marco-2023 commented Feb 22, 2024

Added a new periodic module and tests. The new module contains an Atom class with attributes corresponding to properties in data from the elements_data.csv and data_info.csv. This is done when the module is loaded. The docstring is also generated when the module is imported. This allows for adding new "kinds" of data in the future without needing to update the code.

Notes:
@gabrielasd commented that this module is supposed to be used internally. Because of this and due to the diverse nature of the data (and its units) the module returns the values in its original units. The generated docstring and consequently help(Atoms) shows for each attribute the units along with the source, doi, etc.

For multiplicities of charged species, the multiplicity of the isoelectronic element is used. This can lead to errors sometimes (see multiplicities problem)

@gabrielasd
Copy link
Collaborator

This is great, thanks @marco-2023. I'll merge this PR.

A mentioned here in reply to the issue with the multiplicities, the file database_beta_1.3.0.h5 can be used to determine the most stable multiplicity of the cationic species.

@gabrielasd gabrielasd merged commit 0ec5168 into master Feb 25, 2024
2 of 9 checks passed
msricher pushed a commit that referenced this pull request May 13, 2024
Add new periodic module and tests
@msricher msricher deleted the add_periodic_module branch May 13, 2024 15:41
msricher pushed a commit that referenced this pull request May 13, 2024
Add new periodic module and tests
marco-2023 pushed a commit that referenced this pull request May 13, 2024
Add new periodic module and tests
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