DownloadDataFileToMemoryAndDisk

class openmsistream.data_file_io.DownloadDataFileToMemoryAndDisk(filepath, *args, **kwargs)

Bases: DownloadDataFileToMemory, DownloadDataFileToDisk

A file that’s written to disk as its messages are read from a topic, while also having a bytestring created for it.

Parameters:

filepath (pathlib.Path) – Path to the file

property check_file_hash

Hash of the file contents as read from its current location on disk and from the bytestring of the file stored in memory. Raises an error if they don’t match.