Skip to content

Commit 120e17e

Browse files
committed
Add a comment so SAChem pick up why their logic was a bad idea and guard against future modification.
1 parent 7893723 commit 120e17e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

base/core/src/main/java/org/openscience/cdk/config/IsotopeFactory.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,16 @@ public IIsotope getMajorIsotope(int elem) {
214214
}
215215
if (major != null)
216216
this.majorIsotope[elem] = major;
217-
else
217+
else {
218218
logger.error("Could not find major isotope for: ", elem);
219+
// Note for SAChem:
220+
// Major (most abundant) isotope means something specific and in general
221+
// you shouldn't assign it to a structure unless you're working with mass
222+
// spectra definitely setting the InChI values is not sensible "(98)Tc" is synthetic
223+
// for example!!!
224+
// see also:
225+
// https://www.nextmovesoftware.com/talks/Mayfield_BuildingOnSand_InChI_201708.pdf
226+
}
219227
}
220228
return clone(major);
221229
}

0 commit comments

Comments
 (0)