hrbonz / python-aqi

A library to convert between AQI value and pollutant concentration (µg/m³ or ppm)
BSD 3-Clause "New" or "Revised" License
60 stars 28 forks source link

Updated AQI breakpoints in the US - updating the code? #32

Open natematias opened 1 month ago

natematias commented 1 month ago

Hello, thanks for writing this very useful software!

I just noticed that the US EPA updated the breakpoints for AQI calculations as of May 6, 2024.

I'm wondering if there might be interest in updating the library accordingly? I know in theory it's simple to assemble a pull request for updating the breakpoints, but I also know that software reliant on this library might experience unexpected issues as a result.

I would be happy to contribute some code, but I imagine there will need to be a conversation about how best to architect any changes, particularly so people can get updates reliably while also having back-compatible options if they need to compute AQI using previous methods.

Thoughts?

--J. Nathan Matias

hrbonz commented 1 month ago

I've been thinking a lot about this issue, I think I should add a year or version to the algos. The EPA has updated the breakpoints multiple times and the package doesn't do a good job reflecting that. I think I might simply rewrite most of the project as an incompatible v2 as there are a lot of things I'd like to change.

hrbonz commented 1 month ago

Thanks for letting me know about the update :)

natematias commented 1 month ago

My pleasure! Let me know if you would like a hand, or if there are other kinds of resources that would be useful. I use the library, so I have a vested interest in supporting it!