-
Notifications
You must be signed in to change notification settings - Fork 23
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
Progress calculation methodology integration #318
base: 2.1.0-dev
Are you sure you want to change the base?
Progress calculation methodology integration #318
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## 2.1.0-dev #318 +/- ##
=============================================
- Coverage 70.32% 68.98% -1.35%
=============================================
Files 74 75 +1
Lines 4536 4646 +110
=============================================
+ Hits 3190 3205 +15
- Misses 1346 1441 +95
☔ View full report in Codecov by Sentry. |
@MaiaPelletier Amazing, thank you! This looks great to me. I just want to think out loud about the question of the progress types. I think clearly there need to be exactly 4 progress types, to cover the 4 conditionals at the end. Do you think though that the strings for these 4 progress types could be configurable? In Open SDG we have those as configurable in the site configuration, so it would be nice if they could be configurable here too. I'm imagining a configuration that might look something like:
That would also allow for any countries that might (for whatever reason) want to, for example, omit "negligible_progress":
Another question I have (maybe related) is do you think it would be helpful to have a configuration that is common across all indicators, and not indicator-specific? If so, my advice there would be to model it after something like the |
To your second point (and related to the first one), I do think that a set of common configurations across all indicators could be useful. The problem with the progress statuses is that the 2 methodologies (indicators with or without a numeric target) need to return a different set of progress statuses because of the different ways they measure progress (comparing against the actual target value vs. extrapolating). So if we were to have a common configuration across all indicators, we would need to allow users to configure 2 different sets of progress statuses, i.e.
And even then, there would still be 6 potential outputs, which I know doesn't align with the 4 conditions that Open SDG currently supports by default. I noticed in the open sdg issue 'Progress' updates to goal pages · Issue #1747 · open-sdg/open-sdg (github.com) that these number of defaults might be changing in an upcoming release. This could potentially align better with the current set of progress statuses provided in our methodology? |
@MaiaPelletier @brockfanning some initial thoughts on aligning the progress statuses: It would be great if we could align them, however, at the moment I feel we are reporting two different types of progress:
Therefore, I'm not sure how easy it would be to align them. I'm not sure that I see that as an issue though, more like we would be providing another option in terms of reporting progress. That being said, we would need to consider how the design may differ between the two types of progress |
Frictionless v5 requires Python 3.8, and we have not yet confirmed compatibility with Python 3.8. We can remove this restriction once we're sure that using Python 3.8 is fine.
Prevent version 5 of frictionless
Pin version of openpyxl to 3.1.0
* Allow per-indicator callbacks in Open SDG output * Fix test
* Handle Pandas bug in Series.replace * Test for code_map * Fix same bug in SDMX output
* Better error message when CSV whitespace issues * Add tests * Empty commit * Typos * Test fixes
…pen-sdg#336) * Better exception messages for InputYamlMdMeta * Exception improvements for InputYamlMeta * Tests * Raise instead of exit * Don't repeat error message * Remove code duplication and add translation input * Test translations * Different string concat approach * Try to get the exception message at the bottom * Try to get the exception message at the bottom * Newline * Update files.py
open-sdg#337) * Avoid key error when report field does not exist in indicator metadata * Test fixes * More test fixes * More test coverage
* Warn instead of fail when no indicators have geo data * Default logging in open_sdg_check
Pandas version - pin to 1.x
Docs for release 2.2.0
Hi Brock - I know it's been a while since the last time we talked about adding this feature as a contribution, so my apologies. We've been really busy this year!
I used your recommendation for where to plug in my code for calculating indicator progress using our methodology that I outlined when we last met. A couple things to note about this PR:
Don't hesitate with any suggestions or questions once you've had a chance to review 🙂