#NEWLINE# def get_run_by_id( id , session = None ) : #NEWLINE# #INDENT# "Get an individual run by it's id.\n\n    :param str id: The id for the run\n    :param session: optional session object if one isn't provided a new session\n                    will be acquired for the duration of this operation\n\n    :return: The specified run object\n    :rtype: subunit2sql.models.Run\n    " #NEWLINE# session = ( session or get_session ( ) ) #NEWLINE# run = db_utils . model_query ( models . Run , session ) . filter_by ( id = id ) . first ( ) #NEWLINE# return run