-
Notifications
You must be signed in to change notification settings - Fork 4
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
Easier State Entries #12
Conversation
@AMDeitsch, thank you for your submission of code to the pyaqsapi repository. I am sorry it is taking so long to look through your pull request. To be honest, since pyaqspi is such a simple library. I had not thought this package would get a lot of attention, let alone people wanting to contribute to it. Being the sole maintainer of this repository I had planned on not accepting outside code contributions since I am unsure if I will have the bandwidth to review and test out each and every line of contributed code that is submitted with the exception of urgent issues like security vulnerabilities or unstable code. That being said, before I make a final decision on accepting your code can you please tell me why you think this addition of code in necissarry? From glancing over your code it appears as if you are defining variables for state codes abbreviations. So the user can, for example, pass in the state abbreviation for Also it seems that if your goal is to retrieve data from Canada; so wouldn't it be easier for the user in that case to define their own variable, for example Again thank you for your interest in pyaqsapi and for your contribution to the project. |
@mccroweyclinton-EPA, Thanks for your response. I understand the situation on reviewing contributed code and the need to match any changes with the sister package for R. As you said, the user could easily pull up a list of the codes related with Now, responsibilities can be simplified by typing either the name or abbreviation of the value rather than taking on the extra steps to find it in the list and define it as a variable. Pulling up a list as On the note of -- Adam |
Thanks for your submission, we may revisit this in the future to merge this feature in. |
I added a list of variables that can be called for
stateFIPS
.For example, the following three lines of code will all return the same dataset for the District of Columbia:
aqs.bystate.sampledata(parameter = param, bdate = bdate, edate = edate , stateFIPS = aqs.DC)
aqs.bystate.sampledata(parameter = param, bdate = bdate, edate = edate , stateFIPS = aqs.DistrictOfColumbia)
aqs.bystate.sampledata(parameter = param, bdate = bdate, edate = edate , stateFIPS = 11)
Notes:
aqs.DistrictOfColumbia
).aqs.Mexico
).aqs.*
prefix is required to call the variables.aqs.CAN
to prevent conflict with California'saqs.CA
.