Skip to content

Update molecular inorganics bond handling (GHI # 218)#219

Open
nnuk wants to merge 9 commits into
devfrom
MI-bond_handling
Open

Update molecular inorganics bond handling (GHI # 218)#219
nnuk wants to merge 9 commits into
devfrom
MI-bond_handling

Conversation

@nnuk

@nnuk nnuk commented May 28, 2026

Copy link
Copy Markdown
Collaborator

This pull request resolves #218. Coordinative bond included in the condition to be evaluated before the disconnection of bonds.

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown

Unit Test Coverage Report

Coverage Regression Summary

Metric PR (%) Base (%) Difference (pp)
Lines 18.4 18.1 +0.30
Branches 12.1 11.8 +0.30

Find details on the base coverage at https://iupac-inchi.github.io/InChI/coverage/index.html

Find details on this PR's coverage by downloading coverage-reports-27428034371 and opening html/index.html

Comment thread INCHI-1-SRC/INCHI_BASE/src/strutil.c Outdated
@cthoyt

cthoyt commented Jun 4, 2026

Copy link
Copy Markdown

@JanCBrammer this needs your review

@cthoyt

cthoyt commented Jun 8, 2026

Copy link
Copy Markdown

There's a blocker on this related to a lithium hydroxide molecule that needs discussion (how covalent bond is represented) between @gblanke02 and @nnuk

Nauman has a specific structure in mind. Not sure if we have the expected result.

Comment thread INCHI-1-SRC/INCHI_BASE/src/strutil.h
Comment thread INCHI-1-SRC/INCHI_BASE/src/strutil.h
Comment thread INCHI-1-SRC/INCHI_BASE/src/strutil.h
@gblanke02

gblanke02 commented Jun 10, 2026 via email

Copy link
Copy Markdown
Contributor

@gblanke02

gblanke02 commented Jun 10, 2026 via email

Copy link
Copy Markdown
Contributor

fbaensch-beilstein and others added 5 commits June 10, 2026 16:04
…rges

Realize each type-9 (coordinative) bond as a single bond at the start of
MolecularInorganicsPreprocessing, and cancel the paired +/- formal charges
of the two bonded atoms (the donated lone pair becomes the shared bonding
pair).

This unifies the two equivalent coordinative-bond drawings - donor VAL set,
or explicit +/- charges - so both yield the same InChI (e.g. NaOH drawn
either way -> Na+ + OH-). Fixes the previously failing charged-input cases
in test_molecularInorganics (now 11/11).
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.

Rule set of molecular inorganics in wrong order

4 participants