Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

read_dataset fails silently if no .tsv files are found #68

Open
anweiteck opened this issue Jan 8, 2022 · 0 comments
Open

read_dataset fails silently if no .tsv files are found #68

anweiteck opened this issue Jan 8, 2022 · 0 comments
Assignees

Comments

@anweiteck
Copy link
Collaborator

See TODO, line60:

def read_dataset(path: str) -> list[pd.DataFrame]:
"""Reads a dataset into a list of `AttributedData`."""
dataset_data = []
for root, _, files in os.walk(path):
for file in files:
name, ext = os.path.splitext(file)
#TODO: raise FileNotFound error
if ext.endswith("tsv"):
dataset_data.append(
AttributedData(
data=read_data(os.path.join(root, file)),
title=name
)
)

@qitianshi qitianshi changed the title raise FileNotFound error read_dataset fails silently if no .tsv files are found Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants