Closed lsetiawan closed 6 years ago
I was wondering if I should create some sort of warning here too saying how this argument will be deprecated in the next release after this one, and the *values dataframe will default to columns similar to the model in future releases, therefore user have to add lowercase=False to anticipate for that?
YES! That'd be perfect. Though at this time we don't need to be specific about which release it'll be deprecated on. We can say "soon" or "in the near future", then once a decision is made about a timeframe, we can change the warning to be more specific.
Regarding getDatasetsValues
: I didn't realize that function was also impacted by this issue/decision. But I guess I hadn't really thought about or examined that function. Thanks for making the two functions consistent.
Is this warning message okay?
'The parameter \'lowercols\' default makes the column names lowercase. '
'Please set this to False. \'lowercols\' will be deprecated in the near future; '
'column names casing will then be similar to its respective model.'
@lsetiawan See the conflicts that were identified by github. I'll hold off on reviewing this PR until the conflict is resolved. Thanks.
See my suggested changes to a couple of doc strings. If you agree with them, go ahead and merge this PR yourself once you've made that addition. Thanks!
@ocefpaf For some reason, Travis CI is not starting, I've been waiting for it for few hours, I restarted it after about an hour. Do you know what's going on? Thanks!
@lsetiawan take a look at their status bot on Twitter. It seems that they had an incident a while ago:
Oh okay. Good to know. I'll just let it do it's thing then. Thanks!
Travis finally worked. Merging.
Overview
This PR Addresses https://github.com/ODM2/ODM2PythonAPI/issues/127#issuecomment-356519409. Now
getResultValues
andgetDatasetsValues
have an additional argument calledlowercols
, which defaults toTrue
to keep the api the same, and make changes less disruptive. I have tested this and it works.I was wondering if I should create some sort of warning here too saying how this argument will be deprecated in the next release after this one, and the
*values
dataframe will default to columns similar to the model in future releases, therefore user have to addlowercase=False
to anticipate for that?