We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For some reason, the Dockets file when read into sqllite has no keys:
This is causing "key doesn't exist" errors
initialize nocap with .bz2 files
# get file paths opinions_fn = f'{path}opinions-2022-12-31.csv.bz2' courts_fn = f'{path}courts-2022-12-31.csv.bz2' dockets_fn = f'{path}dockets-2022-12-31.csv.bz2' opinion_clusters_fn = f'{path}opinion-clusters-2022-12-31.csv.bz2' citation_fn = f'{path}citation-map-2022-12-31.csv.bz2' # initalize nc nc = lnc.NoCap(opinions_fn, opinion_clusters_fn, courts_fn, dockets_fn, citation_fn) # check length of docket keys len(list(nc._df_dockets.keys()))
The text was updated successfully, but these errors were encountered:
error looks like:
KeyError: 62526835 DEBUG:root:process_df: client.map ERROR:root:62428550 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lil_nocap/__init__.py", line 459, in start result = future.result() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lil_nocap/__init__.py", line 337, in process_df docket_rows = list(map(lambda x: dockets[int(x["docket_id"])], cluster_rows)) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lil_nocap/__init__.py", line 337, in <lambda> docket_rows = list(map(lambda x: dockets[int(x["docket_id"])], cluster_rows)) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sqlitedict.py", line 305, in __getitem__ raise KeyError(key) KeyError: 62428550
Sorry, something went wrong.
sabzo
No branches or pull requests
For some reason, the Dockets file when read into sqllite has no keys:
This is causing "key doesn't exist" errors
to reproduce:
initialize nocap with .bz2 files
The text was updated successfully, but these errors were encountered: