Hi all,
I've been using MolecularFormulaManipulator.getTotalMassNumber to
get the molecular weight of a molecule, and I'm clearly getting the
wrong value. getTotalMassNumber seems to be returning the sum of the
atomic numbers of all of the atoms in the molecule, not the Mass:
mass += isotope2.getAtomicNumber() *
formula.getIsotopeCount(isotope);
shouldn't this be:
mass += isotope2.getMassNumber() *
formula.getIsotopeCount(isotope);
?
-- scooter
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user