Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lyu committed Oct 31, 2023
1 parent 8702049 commit e07487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/data/storage/file_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def write(self, data_array: np.ndarray, index: int = None) -> None:
# write
index = 0 if index is None else index
with self.uri.open("wb") as fp:
data_array.tofile(self.uri)
data_array.tofile(fp)
else:
if index is None or index > self.end_index:
index = self.end_index + 1
Expand Down

0 comments on commit e07487d

Please sign in to comment.