We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 273022c commit bd97bf8Copy full SHA for bd97bf8
tiledb/datatypes.py
@@ -24,13 +24,11 @@ def from_numpy(cls, dtype: np.dtype) -> DataType:
24
if dtype == "blob":
25
return cls(np.dtype("S"), lt.DataType.BLOB, 1)
26
27
- if hasattr(lt.DataType, "GEOM_WKB"):
28
- if dtype == "wkb":
29
- return cls(np.dtype("S"), lt.DataType.GEOM_WKB, 1)
+ if hasattr(lt.DataType, "GEOM_WKB") and dtype == "wkb":
+ return cls(np.dtype("S"), lt.DataType.GEOM_WKB, 1)
30
31
- if hasattr(lt.DataType, "GEOM_WKT"):
32
- if dtype == "wkt":
33
- return cls(np.dtype("S"), lt.DataType.GEOM_WKT, 1)
+ if hasattr(lt.DataType, "GEOM_WKT") and dtype == "wkt":
+ return cls(np.dtype("S"), lt.DataType.GEOM_WKT, 1)
34
35
dtype = np.dtype(dtype)
36
if dtype.kind == "V":
0 commit comments