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

cpi.update() not updating in jupyter notebook #63

Closed
vnessamartinez opened this issue Dec 8, 2022 · 9 comments
Closed

cpi.update() not updating in jupyter notebook #63

vnessamartinez opened this issue Dec 8, 2022 · 9 comments

Comments

@vnessamartinez
Copy link

The website has up to October it seems (https://www.bls.gov/data/inflation_calculator.htm) but the library only has up to August. Running cpi.update() in the notebook doesn't seem to pull anything.

@vnessamartinez
Copy link
Author

@palewire
Copy link
Owner

palewire commented Dec 8, 2022 via email

@palewire
Copy link
Owner

palewire commented Dec 8, 2022

I've release version 1.0.13 with the latest data. Give that a try.

@zia240637
Copy link

zia240637 commented Jan 2, 2023

cpi.update() still persist. Getting one month old data bls.gov has published the value until November-22, whereas even after cpi.update() data is only until Oct-22.
image
image
Original data:
image

@ShuaHousetable
Copy link

For me,the package isn't able to convert anything from 2022 for me.
Running cpi.update() doesn't seem to be helping/doing anything at all either.

@palewire
Copy link
Owner

palewire commented Jan 9, 2023

@ShuaHousetable, what code snippet is leading to your error?

@ShuaHousetable
Copy link

@palewire for example, something as simple as:

val = cpi.inflate(1000, 2022)

Gives me:

CPIObjectDoesNotExist: Index of annual type for 2022-01-01 does not exist

@palewire
Copy link
Owner

palewire commented Jan 9, 2023

Is there an annual value available for 2022 from BLS yet?

@palewire
Copy link
Owner

palewire commented Jan 9, 2023

I have attempted to fix this bug in the new version released today. When you run update it now deletes the existing sqlite database and rebuilds it with a fresh data download. I'm hoping this will address the core issue. I'd appreciate if you'd give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants