From 9660258b9bf308c9e6cd49f9ff10acfbaa3c2cff Mon Sep 17 00:00:00 2001 From: Lamron_Karl <67222846+Lamron-Karl@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:36:23 +0800 Subject: [PATCH] Fix some errinfo of README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1649c3a..eb48ba7 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ writer.close() ### Read To create a `FileReader` object, you only need to specify the file name. -And then you could call `FileWriter.read()` to read multiple samples from the FFReocrd file. +And then you could call `FileReader.read_batch()` to read multiple samples from the FFReocrd file. It accepts a list of indices as input and outputs the corresponding samples data. The reader would validate the checksum before returning the data if `check_data = True`. @@ -105,7 +105,7 @@ reader = FileReader(fname, check_data=True) print(f'Number of samples: {reader.n}') indices = [3, 6, 0, 10] # indices of each sample -data = reader.read(indices) # return a list of bytes-like data +data = reader.read_batch(indices) # return a list of bytes-like data for i in range(n): sample = deserialize(data[i])