Commit 06ec66b6 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

temporary test

parent 549bfa3d
Pipeline #22366 passed with stage
in 4 minutes and 52 seconds
...@@ -139,6 +139,11 @@ class Field(object): ...@@ -139,6 +139,11 @@ class Field(object):
@staticmethod @staticmethod
def _infer_dtype(dtype, val): def _infer_dtype(dtype, val):
if val is None or dtype is not None:
return np.result_type(dtype, np.float64)
if isinstance(val, Field):
return val.dtype
return np.result_type(val, np.float64)
if dtype is not None: if dtype is not None:
return dtype return dtype
if val is None: if val is None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment