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

Bnb/dev #152

Merged
merged 3 commits into from
Jul 7, 2023
Merged

Bnb/dev #152

merged 3 commits into from
Jul 7, 2023

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Jul 5, 2023

small edit to handle multi-step spatial only models

@bnb32 bnb32 requested a review from grantbuster July 5, 2023 21:54
@bnb32 bnb32 marked this pull request as ready for review July 6, 2023 14:51
Copy link
Member

@grantbuster grantbuster left a comment

Choose a reason for hiding this comment

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

looks good! one suggested edit.

self._file_paths = glob.glob(self._file_paths)
else:
self._file_paths = [self._file_paths]

msg = ('No valid files provided to DataHandler. '
f'Received file_paths={file_paths}. Aborting.')
assert len(self._file_paths) > 0 and file_paths is not None, msg
Copy link
Member

Choose a reason for hiding this comment

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

Probably better to check the None condition first. If file_paths is None, you'll get a weird error on cannot run len(None) instead of is not None i think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah good call

self._file_paths = glob.glob(self._file_paths)
else:
self._file_paths = [self._file_paths]

msg = ('No valid files provided to DataHandler. '
f'Received file_paths={file_paths}. Aborting.')
assert len(self._file_paths) > 0 and file_paths is not None, msg
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah good call

sup3r/pipeline/forward_pass.py Show resolved Hide resolved
@bnb32 bnb32 mentioned this pull request Jul 7, 2023
@bnb32 bnb32 merged commit e948a1d into main Jul 7, 2023
5 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 7, 2023
@bnb32 bnb32 deleted the bnb/dev branch August 9, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants