-
Notifications
You must be signed in to change notification settings - Fork 0
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
squelch countrycode warnings when no currency is matched #28
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #28 +/- ##
=======================================
Coverage 18.82% 18.82%
=======================================
Files 35 35
Lines 1126 1126
=======================================
Hits 212 212
Misses 914 914 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cjyetman I trust your judgement if you think this is a reasonable thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Should we be filtering to the countrycode
list in workflow.factset
?
I think maybe we should filter rows where a currency cannot be determined after this, but have to think about that when I'm not in a brain fog |
putting in draft until I determine if it's necessary/appropriate to filter out rows that end up with currency code == |
These are filters 🤣. I was thinking these are adding the currency based on the country code, but the currency is already there. This is making sure that we're only keeping rows where the currency matches the country (I think so we drop rows of data for foreign versions of the same thing?). But anyway, I don't think there's much risk with this. {countrycode} may throw warnings if
but either of those warnings are not very important, because those rows where the country/currency pair cannot be verified/validated will be filtered out, which is what we want. It's a bit of a shame that we therefore cannot verify any PS rows because PS does not have an official currency recognized in iso4217c, but these warnings will not help get around that. opening for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for investigating. Looks good.
in particular, when the country code is
PS
and there's no matching currency code