Properly support int variables of any width (#1829)
This commit is contained in:
@@ -80,6 +80,8 @@ class RasterioProvider(BaseProvider):
|
||||
dtype2 = dtype
|
||||
if dtype.startswith('float'):
|
||||
dtype2 = 'number'
|
||||
elif dtype.startswith('int'):
|
||||
dtype2 = 'integer'
|
||||
|
||||
self._fields[i2] = {
|
||||
'title': name,
|
||||
|
||||
@@ -112,6 +112,8 @@ class XarrayProvider(BaseProvider):
|
||||
dtype = value.dtype
|
||||
if dtype.name.startswith('float'):
|
||||
dtype = 'number'
|
||||
elif dtype.name.startswith('int'):
|
||||
dtype = 'integer'
|
||||
|
||||
self._fields[key] = {
|
||||
'type': dtype,
|
||||
|
||||
Reference in New Issue
Block a user