MCPcopy Create free account
hub / github.com/Kitware/ParaView / are_close

Function are_close

Remoting/Application/Testing/Python/PythonSMTraceTest6.py:46–55  ·  view source on GitHub ↗
(array1: List[float], array2: List[float])

Source from the content-addressed store, hash-verified

44
45
46def are_close(array1: List[float], array2: List[float]) -> bool:
47 # Compare two lists of floats to see if they are very close
48 if len(array1) != len(array2):
49 return False
50
51 for v1, v2 in zip(array1, array2):
52 if not math.isclose(v1, v2):
53 return False
54
55 return True
56
57
58state_string = smstate.get_state()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected