def write_file(self):

        class ProtocolFile(object):

            def __init__(self, proto):
                self._proto = proto
                self._offset = 0

            def write(self, data):
                self._proto.write(data)
                self._offset += len(data)

            def tell(self):
                return self._offset

            def close(self):
                pass

        return ProtocolFile(self)
Test applying linear (time) transform to data
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/protocol.py/Protocol.write_file--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_source_estimate.py/test_transform