-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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.
looks good! one suggested edit.
sup3r/preprocessing/data_handling.py
Outdated
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 |
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.
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?
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.
Yeah good call
sup3r/preprocessing/data_handling.py
Outdated
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 |
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.
Yeah good call
small edit to handle multi-step spatial only models