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