Skip to content

Commit

Permalink
v4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-001 committed Apr 22, 2024
1 parent f79ad20 commit 0d080e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pure_ocean_breeze/jason/labor/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def get_neutral_factors(self, only_cap=0):
)

dates=list(set(self.factors.date))
with mpire.WorkerPool(30) as pool:
with mpire.WorkerPool(20) as pool:
res=pool.map(self.neutralize_factors,dates)
self.factors = pd.concat(res)
self.factors = self.factors.reset_index()
Expand Down Expand Up @@ -2354,7 +2354,7 @@ def get_snow_fac(self):
dates=list(set(self.corr_pri.date))
# dates=[self.corr_pri[self.corr_pri.date==i].set_index(['date','code']) for i in dates]
# print(dates[0])
with mpire.WorkerPool(30) as pool:
with mpire.WorkerPool(20) as pool:
res=pool.map(self.ols_in_group,dates)
self.snow_fac = pd.concat(res)
# self.snow_fac = (
Expand Down

0 comments on commit 0d080e8

Please sign in to comment.