#NEWLINE# def appPhs_psFieldNorm( sigmaHalf ) : #NEWLINE# #INDENT# ( survey , sigma , mesh ) = setupSurvey ( sigmaHalf , False ) #NEWLINE# problem = MT . Problem1D . eForm_psField ( mesh , sigmaPrimary = sigma ) #NEWLINE# problem . pair ( survey ) #NEWLINE# fields = problem . fields ( sigma ) #NEWLINE# data = survey . eval ( fields ) #NEWLINE# app_p = np . array ( getAppResPhs ( data ) ) [ : , 1 ] #NEWLINE# return np . linalg . norm ( ( np . abs ( ( app_p - ( np . ones ( survey . nFreq ) * 45 ) ) ) / 45 ) )