Skip to content

Commit

Permalink
remove: writing dump files for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MetzkerLior committed Jul 4, 2024
1 parent 7ec38d6 commit 72f3162
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bktest/export/quants.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def finalize(self) -> None:
self.rows,
columns=["date", value_column_name]
).set_index("date")

self.dataframe.to_csv('temp_qs.csv')

# TODO: remove after debuging.
# self.dataframe.to_csv('temp_qs.csv')
if not len(self.dataframe):
print(
"[warning] cannot create tearsheet: dataframe is empty",
Expand All @@ -97,7 +98,7 @@ def finalize(self) -> None:
format="%Y-%m-%d"
)
# TODO: remove after debuging.
history_df.to_csv('history_df.csv')
# history_df.to_csv('history_df.csv')

if self.benchmark_ticker:
bench = quantstats.utils.download_returns(self.benchmark_ticker)
Expand Down

0 comments on commit 72f3162

Please sign in to comment.