def test_rms_is_zero_for_single_value_array(): arr = np.ones((ARR_SIZE, ARR_SIZE)) assert util.rms(arr) == pytest.approx(1)
def rms(self): ''' Returns the RMS wavefront error in the given OPD units ''' return convert_phase(rms(self.phase), self)