-
Notifications
You must be signed in to change notification settings - Fork 890
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
Removed Variable dtype #416
Conversation
gsheni
commented
Feb 7, 2019
- Variable dtype is unused so we are removing the functionality.
@@ -44,7 +44,7 @@ def __eq__(self, other): | |||
self.entity_id == other.entity_id | |||
|
|||
def __repr__(self): | |||
ret = u"<Variable: {} (dtype = {})>".format(self.name, self.dtype) | |||
ret = u"<Variable: {} >".format(self.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.
still print the dtype, just use self._dtype_repr
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.
Fixed.
featuretools/entityset/entity.py
Outdated
@@ -84,7 +84,7 @@ def __repr__(self): | |||
repr_out = u"Entity: {}\n".format(self.id) | |||
repr_out += u" Variables:" | |||
for v in self.variables: | |||
repr_out += u"\n {} (dtype: {})".format(v.id, v.dtype) | |||
repr_out += u"\n {} ".format(v.id) |
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.
still print the dtype, just use self._dtype_repr
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.
Fixed.
def dtype(self): | ||
return self._dtype_repr \ | ||
if self._dtype_repr is not None else "generic_type" | ||
# @property |
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.
delete this
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.
Fixed.
Codecov Report
@@ Coverage Diff @@
## master #416 +/- ##
==========================================
- Coverage 96.07% 96.07% -0.01%
==========================================
Files 92 92
Lines 8025 8022 -3
==========================================
- Hits 7710 7707 -3
Misses 315 315
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #416 +/- ##
==========================================
- Coverage 96.07% 96.07% -0.01%
==========================================
Files 92 92
Lines 8025 8023 -2
==========================================
- Hits 7710 7708 -2
Misses 315 315
Continue to review full report at Codecov.
|
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