示例#1
0
def test_gyy():
    "gravmag.prism.gyy python vs cython implementation"
    py = _prism.gyy(xp, yp, zp, model)
    cy = _cprism.gyy(xp, yp, zp, model)
    diff = np.abs(py - cy)
    assert np.all(diff <= precision), 'max diff: %g' % (max(diff))
示例#2
0
def test_gyy():
    "gravmag.prism.gyy python vs cython implementation"
    py = _prism.gyy(xp, yp, zp, model)
    cy = _cprism.gyy(xp, yp, zp, model)
    diff = np.abs(py - cy)
    assert np.all(diff <= precision), 'max diff: %g' % (max(diff))
示例#3
0
def test_gyy_ne():
    "gravmag.prism.gyy python vs numexpr implementation"
    py = _prism.gyy(xp, yp, zp, model)
    ne = _neprism.gyy(xp, yp, zp, model)
    diff = np.abs(py - ne)
    assert np.all(diff <= precision), 'max diff: %g' % (max(diff))
示例#4
0
def test_gyy_ne():
    "gravmag.prism.gyy python vs numexpr implementation"
    py = _prism.gyy(xp, yp, zp, model)
    ne = _neprism.gyy(xp, yp, zp, model)
    diff = np.abs(py - ne)
    assert np.all(diff <= precision), 'max diff: %g' % (max(diff))