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

Replace atom Symbol with Integer constant comparison #827

Merged
merged 15 commits into from Feb 8, 2022
Merged

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Feb 7, 2022

Gotta catch em all... I think I got the vast majority of them. Resolves #546

I do wonder longer (CDK v3.0/v4.0) term if may making it just store and compare the enum.

atom.setElement(Element.H);

Mainly because interface constants are a bit of a bad pattern but it is quite handy.

@johnmay
Copy link
Member Author

johnmay commented Feb 8, 2022

Will look at the sonar cloud issues - expected since this touched a lot of classes

…he original paper we see this is meant to be the SQRT(RADII) where this is different for each atom type.
@sonarcloud
Copy link

sonarcloud bot commented Feb 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 13 Code Smells

0.0% 0.0% Coverage
11.6% 11.6% Duplication

@egonw
Copy link
Member

egonw commented Feb 8, 2022

Thanks. Looks good. This was not possible in the past, because atomic numbers were not automatically set.

@egonw egonw merged commit 650002d into master Feb 8, 2022
@johnmay johnmay deleted the patch/atomic-nums branch February 9, 2022 15:36
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.

Compare atomic number rather than symbol.
2 participants