Code:
|
chemComp = self.chemCompCharge.chemComp
linking = self.linking
descriptor = self.descriptor
if linking == 'any' and descriptor == 'any':
result = chemComp.chemCompVars
elif linking == 'any' :
result = chemComp.findAllChemCompVars(descriptor=descriptor)
elif descriptor == 'any' :
result = chemComp.findAllChemCompVars(linking=linking)
else:
result = chemComp.findAllChemCompVars(linking=linking, descriptor=descriptor)
#
result = frozenset(result)
|