get function for derived attribute Isotopes. NB the same isotope can appear multiple times in the result.
guid:
www.ccpn.ac.uk_Fogh_2006-08-16-18:20:05_00045
OpType:
get
OpSubType:
None
isQuery:
True
isAbstract:
False
Scope:
instance_level
Code:
result = []
for ss in self.isotopeCodes:
if ss[-2] in '0123456789':
firstLetter = -1
else:
firstLetter = -2
atomSymbol = ss[firstLetter:].capitalize()
massNumber = int(ss[:firstLetter])
result.append(ccp.api.molecule.ChemElement.Isotope.getByKey(self.root.currentChemElementStore, (atomSymbol, massNumber)))