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

StimulusLoader.cls unused #12

Open
mschrimpf opened this issue Sep 27, 2021 · 0 comments
Open

StimulusLoader.cls unused #12

mschrimpf opened this issue Sep 27, 2021 · 0 comments
Assignees

Comments

@mschrimpf
Copy link
Member

brainio/brainio/fetch.py

Lines 135 to 147 in d0ac841

class StimulusSetLoader:
def __init__(self, csv_path, stimuli_directory, cls):
self.csv_path = csv_path
self.stimuli_directory = stimuli_directory
self.cls = cls
def load(self):
stimulus_set = pd.read_csv(self.csv_path)
stimulus_set = StimulusSet(stimulus_set)
stimulus_set.image_paths = {row['image_id']: os.path.join(self.stimuli_directory, row['filename'])
for _, row in stimulus_set.iterrows()}
assert all(os.path.isfile(image_path) for image_path in stimulus_set.image_paths.values())
return stimulus_set

the class field is never used

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

No branches or pull requests

2 participants