Skip to content
Browse files

Excel importConditions(): don't import formulas

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 7f753f5f1260387894f81108ddc56f960e57ca2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/
@@ -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]

0 comments on commit 7f753f5

Please sign in to comment.
You can’t perform that action at this time.