Skip to content

Commit 13bde10

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9db456f commit 13bde10

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/spatialdata/_core/centroids.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,7 @@ def _write_centroids_into_table(
314314

315315
if area is not None:
316316
area_for_keys = pd.Series(np.asarray(area, dtype=float), index=centroids.index).reindex(keys).to_numpy()
317-
col = (
318-
table.obs["area"].to_numpy(dtype=float).copy()
319-
if "area" in table.obs
320-
else np.full(table.n_obs, np.nan)
321-
)
317+
col = table.obs["area"].to_numpy(dtype=float).copy() if "area" in table.obs else np.full(table.n_obs, np.nan)
322318
col[mask] = area_for_keys
323319
table.obs["area"] = col
324320

0 commit comments

Comments
 (0)