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

Fix scoping bug in download_datafiles #487

Merged
merged 1 commit into from
Mar 29, 2021
Merged

Conversation

BlaiseRideout
Copy link
Contributor

The variable outstring defined in a with statement is used outside the scope of the with in get_question_data and get_event_data, resulting in question and event data both throwing "Error reading record" errors (the exception being "I/O operation on closed file") when running download_datafiles from the psiturk shell.

The variable `outstring` defined in a `with` statement is used outside the scope of the `with` in `get_question_data` and `get_event_data`, resulting in question and event data both throwing "Error reading record" errors (the exception being "I/O operation on closed file") when running `download_datafiles` from the psiturk shell.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 59.966% when pulling 1df3fbc on BlaiseRitchie:patch-1 into 1f47de7 on NYUCCL:master.

@deargle deargle merged commit 1df3fbc into NYUCCL:master Mar 29, 2021
@deargle
Copy link
Collaborator

deargle commented Mar 29, 2021

Thanks for this!

@jacob-lee
Copy link
Contributor

jacob-lee commented Mar 30, 2021 via email

@BlaiseRideout BlaiseRideout deleted the patch-1 branch April 1, 2021 22:10
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.

None yet

4 participants