Skip to content

Commit

Permalink
Remove duplicate start and stop
Browse files Browse the repository at this point in the history
  • Loading branch information
wiikai committed Jun 9, 2024
1 parent ea5c53b commit 67adc6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions quool/contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,6 @@ def perform_topk(
return eva

def get(self, name: str, trading_days: pd.DatetimeIndex, n_jobs: int = -1):
start = start or pd.to_datetime('now').strftime(r"%Y-%m-%d")
stop = stop or pd.to_datetime('now').strftime(r"%Y-%m-%d")
result = Parallel(n_jobs=n_jobs, backend='loky')(
delayed(getattr(self, "get_" + name))(date) for date in tqdm(list(trading_days))
)
Expand Down

0 comments on commit 67adc6e

Please sign in to comment.