File I/O¶
- finds.io.init_input_filestream(filepath, cache_limit=None)¶
Initializes an I/O filestream for reading.
- Parameters:
filepath (Path) – The path to the H5 file to begin reading from.
cache_limit (Optional[int]) – The total size in bytes of the raw data chunk cache for each dataset.
- Returns:
A read-only I/O object.
- Return type:
- finds.io.init_output_filestream(filepath, n_fish)¶
Initializes the I/O filestream for writing.
- Parameters:
filepath (Path) – The filepath to write to.
n_fish (int) – The number of fish within the system.
- Returns:
A write-only I/O filestream.
- Return type: