(array1: List[float], array2: List[float])
| 44 | |
| 45 | |
| 46 | def 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 | |
| 58 | state_string = smstate.get_state() |