Skip to content


Excel importConditions(): don't import formulas
Browse files Browse the repository at this point in the history
In importCondtions() method, added the option "data_only=True" to the call to load_workbook(), so that the that values of a cell, and not the formulas, are imported into psychopy.
  • Loading branch information
dantheman39 committed Aug 26, 2016
1 parent 3009f01 commit 7f753f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/
Expand Up @@ -2667,7 +2667,7 @@ def _assertValidVarNames(fieldNames, fileName):
raise ImportError('openpyxl is required for loading excel '
'format files, but it was not found.')
wb = load_workbook(filename=fileName)
wb = load_workbook(filename=fileName, data_only=True)
except Exception: # InvalidFileException(unicode(e)): # this fails
raise ImportError('Could not open %s as conditions' % fileName)
ws = wb.worksheets[0]
Expand Down

0 comments on commit 7f753f5

Please sign in to comment.