#NEWLINE# @ staticmethod #NEWLINE# def fromphases( p ) : #NEWLINE# #INDENT# for ( scm , phasename ) in p : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# parserforphase = inputparser . fromphase ( phasename ) #NEWLINE# if ( parserforphase . scm ( ) == scm ) : #NEWLINE# #INDENT# return parserforphase #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# except NotImplementedError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# raise NotImplementedError ( "Couldn't find phase matching conditions" )