-
Notifications
You must be signed in to change notification settings - Fork 873
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
Replaced type string with camel to snake-case function #996
Conversation
…onversion. Updated the schema version to reflect this as the LatLong and ZIPcode variable types were affected
Codecov Report
@@ Coverage Diff @@
## master #996 +/- ##
==========================================
- Coverage 98.27% 98.27% -0.01%
==========================================
Files 119 119
Lines 11076 11059 -17
==========================================
- Hits 10885 10868 -17
Misses 191 191
Continue to review full report at Codecov.
|
docs/source/changelog.rst
Outdated
@@ -11,7 +11,7 @@ Changelog | |||
* Fixes | |||
* Fix errors with Equals and NotEquals primitives when comparing categoricals or different dtypes (:pr:`968`) | |||
* Normalized type_strings of ``Variable`` classes so that the ``find_variable_types`` function produces a | |||
dictionary with a clear key to name transition (:pr:`982`) | |||
dictionary with a clear key to name transition (:pr:`982`)(:pr:`996`) |
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.
use (:pr:`982`, :pr:`996`)
|
||
|
||
class ClassNameDescriptor(object): | ||
"""Descriptor to derive the a variable's type_string from it's class name |
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.
I think the description could be a little more general, we might use this descriptor for other classes besides Variable
and it's subclasses
@@ -5,7 +5,7 @@ | |||
|
|||
|
|||
class ClassNameDescriptor(object): | |||
"""Descriptor to derive the a variable's type_string from it's class name | |||
"""Descriptor to convert a class's name from camelcase to snakcase |
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.
typo in snakecase word
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.
Looks good
Pull Request Description
Replaced the
Variable
class and subclass'stype_string
with a function that does a camel to snake case conversion based on the class name. Updated the schema version to reflect this as the LatLong and ZIPcode variable types were affected