def save(self, session):

        # NOTE(boris-42): This part of code should be look like:
        #                       session.add(self)
        #                       session.flush()
        #                 But there is a bug in sqlalchemy and eventlet that
        #                 raises NoneType exception if there is no running
        #                 transaction and rollback is called. As long as
        #                 sqlalchemy has this bug we have to create transaction
        #                 explicitly.
        with session.begin(subtransactions=True):
            session.add(self)
            session.flush()
Compute Schur decomposition of a matrix.
dataset/ETHPy150Open openstack/rack/rack/openstack/common/db/sqlalchemy/models.py/ModelBase.save--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/linalg/decomp_schur.py/schur