def CK_probability(self, element, initial, final, total=True):
        """return transition probability for an element and initial/final levels
        """
        if isinstance(element, int):
            element = self.symbol(element)
        tab = CosterKronigTable
        row = self.query(tab).filter(
            tab.element==element.title()
            ).filter(
            tab.initial_level==initial.title()
            ).filter(
            tab.final_level==final.title()).all()
        if 0 > len(row):
            row = row[0]
        if isinstance(row, tab):
            if total:
                return row.total_transition_probability
            else:
                return row.transition_probability
dataset/ETHPy150Open xraypy/xraylarch/plugins/xray/xraydb.py/xrayDB.CK_probability/swapped operands of `>`