You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This post is transferred from the post on k-ujihara/NCDK#10.
I don't know what is the proper behavior of org.openscience.cdk.validate.BasicValidator.ValidateIsotopeExistence(IIsotope isotope) method when isotope.getMassNumber() is null or 0.
I guess report.addWarning(isotopeExists) is better than addError.
Do you have any idea?
The text was updated successfully, but these errors were encountered:
null = natural abundance, a lot of other toolkits will use 0 (I actually prefer that to avoid the NPE). Therefore I believe It should treat null the same as it currently treats 0. Also it could check this before fetching the list of possible of isotopes.
This post is transferred from the post on k-ujihara/NCDK#10.
I don't know what is the proper behavior of org.openscience.cdk.validate.BasicValidator.ValidateIsotopeExistence(IIsotope isotope) method when isotope.getMassNumber() is null or 0.
I guess report.addWarning(isotopeExists) is better than addError.
Do you have any idea?
The text was updated successfully, but these errors were encountered: