Skip to content

Commit

Permalink
Don't mess with lowercasing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 17, 2024
1 parent cad5f2b commit 25d27a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,14 +958,15 @@ def get_subsets(self, subset_name=None, spectral_only=False,
# If we only want one subset, no need to loop through them all
if subset_name is not None:
if isinstance(subset_name, str):
subset_name = subset_name.lower()
subsets = [subset for subset in subsets if subset.label.lower() == subset_name]
print(subsets)
subsets = [subset for subset in subsets if subset.label == subset_name]
print(f"Trimmed to {subsets}")
else:
raise ValueError("subset_name must be a string.")

for subset in subsets:

label = subset.label.lower()
label = subset.label

if isinstance(subset.subset_state, CompositeSubsetState):
# Region composed of multiple ROI or Range subset
Expand Down

0 comments on commit 25d27a7

Please sign in to comment.