Skip to content

Commit

Permalink
Undo change in imageselector
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Jul 9, 2023
1 parent 409a03c commit 70f03fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirar/processors/utils/image_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ParsingError(KeyError, ProcessorError):
def select_from_images(
batch: ImageBatch,
key: str = "target",
target_values: str | list[str | float | int] = "science",
target_values: str | list[str] = "science",
) -> ImageBatch:
"""
Returns a subset of images in a batch with have values of <key> equal to
Expand Down Expand Up @@ -144,7 +144,7 @@ class ImageBatcher(BaseImageProcessor):

def __init__(self, split_key: str | list[str]):
super().__init__()
self.split_key = sorted(split_key)
self.split_key = split_key

def __str__(self) -> str:
if isinstance(self.split_key, list):
Expand Down

0 comments on commit 70f03fc

Please sign in to comment.