Skip to content
New issue

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

Columns need updating on speculation watchlist #318

Open
austensen opened this issue Feb 9, 2024 · 0 comments
Open

Columns need updating on speculation watchlist #318

austensen opened this issue Feb 9, 2024 · 0 comments
Labels

Comments

@austensen
Copy link
Member

it looks like the columns may have changed for the speculation watchlist - on the auto updater we got this error:

Traceback (most recent call last):
  File "/app/load_dataset.py", line 375, in error_handling
    yield
  File "/app/load_dataset.py", line 406, in main
    load_dataset(dataset)
  File "/app/load_dataset.py", line 344, in load_dataset
    ds.db_import()
  File "/usr/local/lib/python3.9/site-packages/nycdb/dataset.py", line 73, in db_import
    self.import_schema(schema)
  File "/usr/local/lib/python3.9/site-packages/nycdb/dataset.py", line 119, in import_schema
    batch = list(itertools.islice(rows, 0, BATCH_SIZE))
  File "/usr/local/lib/python3.9/site-packages/nycdb/typecast.py", line 233, in cast_rows
    yield self.cast_row(row)
  File "/usr/local/lib/python3.9/site-packages/nycdb/typecast.py", line 244, in cast_row
    d[column] = self.cast[column.lower()](val)
KeyError: 'censustract2020from2023'
@austensen austensen added the bug label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant