def test_call_capy_fExImagVals(): wRange = np.arange(0.1, 2.9, 0.1) meshFName = f'./test_data/float.gdf' refNc = f'./ref_data/capytaine_integration/floatData.nc' wCapy, addedMass, damping, fEx = fdo.call_capy(meshFName, wRange) refwCapy, refAddedMass, refDamping, refFEx = fdo.read_capy_nc(refNc) assert max(abs(refFEx[0, :].imag - fEx[0, :].imag)) < 1e-12
def test_call_capy_fExComplex(): wRange = np.arange(0.1, 2.9, 0.1) meshFName = f'./test_data/float.gdf' wCapy, addedMass, damping, fEx = fdo.call_capy(meshFName, wRange) assert fEx.dtype == 'complex128'
def test_call_capy_fExShape(): wRange = np.arange(0.1, 2.9, 0.1) meshFName = f'./test_data/float.gdf' wCapy, addedMass, damping, fEx = fdo.call_capy(meshFName, wRange) assert fEx.shape == (6, 28)