#NEWLINE# def getFinestResolution( inSource ) : #NEWLINE# #INDENT# '\n        This function will return the highest (or finest) resolution \n        present in the inSource file.     \n    ' #NEWLINE# imageResolution = [ ] #NEWLINE# if isFileHandler ( inSource ) : #NEWLINE# #INDENT# if isfile ( inSource . getLastBasevol ( ) ) : #NEWLINE# #INDENT# imageResolution = volumeFromFile ( inSource . getLastBasevol ( ) ) . separations #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isfile ( inSource . inputFileName ) : #NEWLINE# #INDENT# imageResolution = volumeFromFile ( inSource . inputFileName ) . separations #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# imageResolution = volumeFromFile ( inSource ) . separations #NEWLINE# #UNINDENT# finestRes = abs ( imageResolution [ 0 ] ) #NEWLINE# for i in range ( 1 , len ( imageResolution ) ) : #NEWLINE# #INDENT# if ( abs ( imageResolution [ i ] ) < finestRes ) : #NEWLINE# #INDENT# finestRes = abs ( imageResolution [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# return finestRes