mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 21:48:12 +08:00
chore: Fix compatibility tests (#2685)
* chore: Fix compatibility tests * DEBUGGGG * fix: update deps, fix unit tests * fix: FE deps * chore: update compatibility matrix --------- Co-authored-by: kaloster <rkalo@contractor.chanzuckerberg.com>
This commit is contained in:
@@ -116,7 +116,7 @@ def _get_type_info(array: Union[np.ndarray, pd.Series, pd.Index]) -> Tuple[np.dt
|
||||
raise TypeError("Unsupported data type.")
|
||||
|
||||
dtype = array.dtype
|
||||
|
||||
|
||||
res = _get_type_info_from_dtype(dtype)
|
||||
if res is not None:
|
||||
return res
|
||||
@@ -140,7 +140,6 @@ def _get_type_info(array: Union[np.ndarray, pd.Series, pd.Index]) -> Tuple[np.dt
|
||||
|
||||
if dtype.kind in ["i", "u"] and _can_cast_array_values_to_int32(array):
|
||||
return (np.int32, {"type": "int32"})
|
||||
|
||||
if dtype.kind == "f":
|
||||
_float64_warning(array.dtype)
|
||||
return (np.float32, {"type": "float32"})
|
||||
|
||||
Reference in New Issue
Block a user