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

Patch up the MEArec reader. #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

DailyDreaming
Copy link
Member

There were some bugs and hopefully this addresses some of them (specifically local files were not being read when ENDPOINT was set, and load_data() was set to the intan function accidentally, instead of MEArec).

Copy link
Contributor

@warrenmm warrenmm 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. Just one if condition which might need an else to catch non-passing files. I'll commit push load_data_mearec() when I get a chance.

data_files = []
for root, dirs, files in os.walk(path):
for name in files:
if name.endswith('.h5') or name.endswith('.hdf5'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any risk of a index mismatch if this "if" condition fails? There is no "else" condition to complain or throw an error, so it might be hard to see where it went wrong if this if condition returns false.

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.

3 participants