Skip to content

Commit

Permalink
fix: npz file's data key in BacktestRecorder.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Jul 31, 2024
1 parent 62fb5e6 commit e8e3332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hftbacktest/src/backtest/recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl BacktestRecorder {
.compression_level(Some(9));

for (asset_no, values) in self.values.iter().enumerate() {
zip.start_file(format!("{asset_no}"), options)?;
zip.start_file(format!("{asset_no}.npy"), options)?;
write_npy(&mut zip, values)?;
}

Expand Down

0 comments on commit e8e3332

Please sign in to comment.