Skip to content

Commit

Permalink
Fix set literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Aug 14, 2023
1 parent 0eed734 commit ea11460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spatialprofilingtoolbox/ondemand/service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_squidpy_metrics(
radius: float | None = None,
) -> SquidpyMetricsComputationResult:
"""Get spatial proximity statistics between phenotype clusters as calculated by Squidpy."""
if not len(signature) in [1, 2]:
if not len(signature) in {1, 2}:
raise ValueError(f'Expected 1 or 2 signatures/phenotypes but got {len(signature)}.')
separator = self._get_record_separator()
groups = [feature_class, self._sanitize_token(study)]
Expand Down

0 comments on commit ea11460

Please sign in to comment.