Skip to content

Commit

Permalink
🏅 multiprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
raynardj committed Nov 28, 2021
1 parent a6ec957 commit 373cd49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion forgebox/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.18.3"
__version__ = "0.4.18.4"
4 changes: 2 additions & 2 deletions forgebox/multiproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def __iter__(self):

def __getitem__(self, idx):
global DataFrameRowling_df
return DataFrameRowling_df[list(DataFrameRowling_df.index[idx]]
return DataFrameRowling_df[list(DataFrameRowling_df.index)[idx]]

def __next__(self):
global DataFrameRowling_df
global DataFrameRowling_ct
row = DataFrameRowling_df.loc[DataFrameRowling_df.index[DataFrameRowling_ct]]
row = DataFrameRowling_df.loc[list(DataFrameRowling_df.index)[DataFrameRowling_ct]]
DataFrameRowling_ct+=1
return row
4 changes: 2 additions & 2 deletions nbs/09_multiprocess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -209,7 +209,7 @@
" def __next__(self):\n",
" global DataFrameRowling_df\n",
" global DataFrameRowling_ct\n",
" row = DataFrameRowling_df.loc[DataFrameRowling_df.index[DataFrameRowling_ct]]\n",
" row = DataFrameRowling_df.loc[list(DataFrameRowling_df.index)[DataFrameRowling_ct]]\n",
" DataFrameRowling_ct+=1\n",
" return row"
]
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author = xiaochen(ray) zhang
author_email = [email protected]
copyright = xiaochen(ray) zhang
branch = master
version = 0.4.18.3
version = 0.4.18.4
min_python = 3.6
audience = Developers
language = English
Expand Down

0 comments on commit 373cd49

Please sign in to comment.