Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed Apr 24, 2024
1 parent 273022c commit bd97bf8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tiledb/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ def from_numpy(cls, dtype: np.dtype) -> DataType:
if dtype == "blob":
return cls(np.dtype("S"), lt.DataType.BLOB, 1)

if hasattr(lt.DataType, "GEOM_WKB"):
if dtype == "wkb":
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)

if hasattr(lt.DataType, "GEOM_WKT"):
if dtype == "wkt":
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)

dtype = np.dtype(dtype)
if dtype.kind == "V":
Expand Down

0 comments on commit bd97bf8

Please sign in to comment.