mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-10 11:50:32 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user