Skip to content

Commit 79547da

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 34b7d6a commit 79547da

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/squidpy/pl/_spatial_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def _get_scalefactor_size(
234234
if not len(scale_factor_key):
235235
raise ValueError(f"No `scale_factor` found that could match `img_res_key`: {img_res_key}.")
236236
_scale_factor_key = scale_factor_key[0] # get first scale_factor
237-
scale_factor = [
238-
adata.uns[spatial_key][i][Key.uns.scalefactor_key][_scale_factor_key] for i in library_id
239-
]
237+
scale_factor = [adata.uns[spatial_key][i][Key.uns.scalefactor_key][_scale_factor_key] for i in library_id]
240238
else: # handle case where scale_factor is float or list
241239
scale_factor = _get_list(scale_factor, _type=float, ref_len=len(library_id), name="scale_factor")
242240

0 commit comments

Comments
 (0)