| 2 | |
| 3 | # for saving output in txt |
| 4 | class Tee: |
| 5 | def __init__(self, *files): |
| 6 | self.files = files |
| 7 | |
| 8 | def write(self, data): |
| 9 | for f in self.files: |
| 10 | f.write(data) |
| 11 | f.flush() |
| 12 | |
| 13 | def flush(self): |
| 14 | for f in self.files: |
| 15 | f.flush() |
| 16 | |
| 17 | def save_matrix_to_bin(filename, matrix, byte = 4): |
| 18 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected