BUG: Fix crash on .latest for integer-typed columns.

Int columns get coerced to float on load, and we don't currently support
non-float columns from CustomFactors.
This commit is contained in:
Scott Sanderson
2015-09-21 13:20:26 -04:00
parent 8eb09f70d7
commit bd147a084e
2 changed files with 35 additions and 17 deletions
+4 -1
View File
@@ -71,7 +71,10 @@ class BoundColumn(Term):
@property
def latest(self):
return Latest(inputs=(self,), dtype=self.dtype)
# FIXME: Once we support non-float dtypes, this should pass a dtype
# along. Right now we're just assuming that inputs will safely coerce
# to float.
return Latest(inputs=(self,))
def __repr__(self):
return "{qualname}::{dtype}".format(