Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output format #28

Open
mb010 opened this issue Aug 15, 2024 · 0 comments
Open

Output format #28

mb010 opened this issue Aug 15, 2024 · 0 comments
Labels
question Further information is requested

Comments

@mb010
Copy link
Owner

mb010 commented Aug 15, 2024

Should the output look like this instead of always returning a tuple (including a tuple of 1 when just images are returned):

    def __get_item__(self, index, ...):
        ...
        if not self.targets and not return_wcs:
            return img
        else:                
            output = [img]
            if self.targets:
                output += [targets]
            if return_wcs:
                output += [wcs_]
            return output
@mb010 mb010 added the question Further information is requested label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant