Skip to content

Commit

Permalink
fix: empty object triggers spatial normalization (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster authored Jun 12, 2024
1 parent 02db419 commit b50ccbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def normalize_embedding(embedding, ename, spatial=None):
Embedding is an ndarray, shape (n_obs, n)., where n is normally 2
"""

if spatial is not None and ename in "spatial":
if spatial and ename in "spatial":

library_id = list(spatial.keys())[0]
image_properties = spatial[library_id]["image_properties"]
Expand Down

0 comments on commit b50ccbf

Please sign in to comment.