(x)
| 109 | |
| 110 | |
| 111 | def is_floats(x) -> bool: |
| 112 | # check if it is float; List[float]; Tuple[float] |
| 113 | if isinstance(x, float): |
| 114 | return True |
| 115 | if isinstance(x, (list, tuple)) and x: |
| 116 | return all(isinstance(i, float) for i in x) |
| 117 | if isinstance(x, np.ndarray): |
| 118 | return x.dtype == np.float64 or x.dtype == np.float32 |
| 119 | return False |
| 120 | |
| 121 | |
| 122 | def unsafe_execute( |
no outgoing calls
no test coverage detected
searching dependent graphs…