Skip to content
Snippets Groups Projects
Commit b52ec41f authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

also check that input is integer for *INT dtypes

parent fe6b01a4
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ class DataType(Enum):
if "FLOAT" in self.name:
return True
elif "INT" in self.name:
return (self.min() <= value) and (value <= self.max())
return (self.min() <= value) and (value <= self.max()) and float(value).is_integer()
elif self.name == "BINARY":
return value in [0, 1]
elif self.name == "BIPOLAR":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment