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

Bad URL for Canada #11

Open
AMDeitsch opened this issue Dec 1, 2023 · 2 comments
Open

Bad URL for Canada #11

AMDeitsch opened this issue Dec 1, 2023 · 2 comments

Comments

@AMDeitsch
Copy link

AMDeitsch commented Dec 1, 2023

Using the code for Canada generates a bad URL.

aqs.bystate.sampledata(parameter= O3, bdate = date(year=year-1, month=month, day = day), edate = date(year=year-1, month=month, day = day), stateFIPS='CC')

@mccroweyclinton-EPA
Copy link
Collaborator

Thank you for pointing this out, it seems that the "CC" state code isn't being accepted by the API itself. The URL that is generated is correct according to the documentation and pyaqsapi is working as it should. I have forwarded this issue to the AQS DataMart team to see if they can fix this issue on the API server itself.

@AMDeitsch
Copy link
Author

Thank you for pointing this out, it seems that the "CC" state code isn't being accepted by the API itself. The URL that is generated is correct according to the documentation and pyaqsapi is working as it should. I have forwarded this issue to the AQS DataMart team to see if they can fix this issue on the API server itself.

No problem. Thanks for building and maintaining this package.

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

2 participants