Lines Matching refs:np
6 import numpy as np namespace
43 assert np.all(test == truth)
65 if not np.allclose(database_array, correct_array, atol=atol, rtol=rtol):
67 … total_tolerances = atol + rtol * np.abs(correct_array) # mimic np.allclose tolerance calculation
68 idx_notclose = np.where(np.abs(database_array - correct_array) > total_tolerances)
69 if not np.all(idx_notclose[1] == 4):
75 test_fail = False if np.allclose(-database_vorticity, correct_vorticity,
81 np.save(database_output_path, database_array)
146 assert_np_all(client.get_tensor("sizeInfo"), np.array([35, 12, 6, 1, 1, 0]))
163 correct_value = np.load(test_data_path)
174 correct_value = np.load(test_data_path)
181 correct_value = np.load(test_data_path)