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

Patch/mdlv3000 updates #824

Merged
merged 7 commits into from Feb 7, 2022
Merged

Patch/mdlv3000 updates #824

merged 7 commits into from Feb 7, 2022

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Feb 7, 2022

Fixes #603.

Unifies the options between V2000 and V3000 and updates V3000 to handle these options including a new Stereo 0d option.

…o add a new option allow us to turn on/off 0d stereo perception.
…oth. After the molecule is parsed we determine how many dimensions we have based on the header and avaliable data.
…3000 to be more consistent with V2000. This is a corner case and I may change to off by default.
@sonarcloud
Copy link

sonarcloud bot commented Feb 7, 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 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Elements e = Elements.ofString(element);
if (e != Elements.Unknown) {
atom.setAtomicNumber(e.number());
} else if ("D".equals(element) && optHydIso.isSet()) {
Copy link
Member

Choose a reason for hiding this comment

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

I was thinking that the String comparison must be slower than the bool matching, but then I realize that the former is pretty rare, and overall this order must be more efficient...

@egonw egonw merged commit 23cec7e into master Feb 7, 2022
@johnmay johnmay deleted the patch/mdlv3000-updates branch February 9, 2022 15:33
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.

SDF parsing - V3000 mol - CFG ignored in atom block warning
2 participants