MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / Tee

Class Tee

utils/io.py:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3# for saving output in txt
4class 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
17def save_matrix_to_bin(filename, matrix, byte = 4):
18 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected