Commit c38f3bf5 authored by Federico Vaga's avatar Federico Vaga

sw:py: disable IO buffering on DMA acquisitions

By default ``open()`` configures a buffer. The user will get ``size``
bytes from a buffer within the *io* module. The size used by the *io*
module depends on the buffering configuration.

Here we want full control, so I disable buffering in PySPEC.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent f8a9221e
......@@ -17,7 +17,7 @@ class PySPEC:
self.dma = os.path.join(self.debugfs_fpga, "dma")
def dma_start(self):
self.dma_file = open(self.dma, "rb")
self.dma_file = open(self.dma, "rb", buffering=0)
def dma_stop(self):
if hasattr(self, "dma_file"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment