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

RasterDataset TS support #5

Merged
merged 7 commits into from
Sep 23, 2024
Merged

RasterDataset TS support #5

merged 7 commits into from
Sep 23, 2024

Conversation

sfalkena
Copy link
Collaborator

@sfalkena sfalkena commented Sep 20, 2024

Very basic ts support without any implementation currently in the datasets. In VERS repo, this is supported, but implementation in RasterDataset and others is still to come.

The reason for this separate PR is so that we can move on within VERS, while developing full TS in sync with TG in parallel

@sfalkena sfalkena marked this pull request as ready for review September 20, 2024 11:07
@sfalkena sfalkena changed the title Sampler TS support Base TS support Sep 20, 2024
@am94ghiassi am94ghiassi self-requested a review September 20, 2024 11:57
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 20, 2024
@sfalkena sfalkena changed the title Base TS support RasterDataset TS support Sep 20, 2024
filename_regex = re.compile(self.filename_regex, re.VERBOSE)
file_metadata = []
for filepath in filepaths:
match = re.match(filename_regex, filepath)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: match = filename_regex.match(filepath)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the method used in TorchGeo, so I try to stick to that

@@ -145,11 +145,8 @@ def __iter__(self) -> Iterator[BoundingBox]:
if self.dataset.return_as_ts:
mint = self.dataset.bounds.mint

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notebook fails here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After merging in main, it no longer complains

@sfalkena sfalkena changed the base branch from main to vers_working_branch September 23, 2024 09:41
@sfalkena sfalkena merged commit 05c6ffe into vers_working_branch Sep 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets documentation Improvements or additions to documentation samplers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants