You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside dataset.py, in flatten(), there is the following block:
if fs.isdir(entry):
res.extend(fs.ls(entry))
elif fs.isfile(entry):
res.append(entry)
This is missing an else statement so if fs.isdir() and fs.isfile() are both false, there is no clear error message and this function doesn't behave correctly so it's very difficult to debug.
The text was updated successfully, but these errors were encountered:
hannahbnelson
changed the title
Missing else option in dataset.py
Missing else in dataset.py
Sep 10, 2024
Inside dataset.py, in
flatten()
, there is the following block:This is missing an else statement so if
fs.isdir()
andfs.isfile()
are both false, there is no clear error message and this function doesn't behave correctly so it's very difficult to debug.The text was updated successfully, but these errors were encountered: