-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
filename_regex = re.compile(self.filename_regex, re.VERBOSE) | ||
file_metadata = [] | ||
for filepath in filepaths: | ||
match = re.match(filename_regex, filepath) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
torchgeo/samplers/single.py
Outdated
@@ -145,11 +145,8 @@ def __iter__(self) -> Iterator[BoundingBox]: | |||
if self.dataset.return_as_ts: | |||
mint = self.dataset.bounds.mint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notebook fails here
There was a problem hiding this comment.
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
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