Skip to content

Commit

Permalink
Fixing standalone reliability for Py3
Browse files Browse the repository at this point in the history
Some residual issues moving from Py2 to Py3. Now that everything should
be on Py3, update required.
  • Loading branch information
jfkominsky committed Feb 13, 2019
1 parent 36c9400 commit 0d041e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions StandaloneReliability.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from types import NoneType
#from types import NoneType

from psychopy import core, data, gui, monitors, tools
import wx, random, csv, os
Expand Down Expand Up @@ -189,9 +189,9 @@ def reliability(verboseMatrix, verboseMatrix2):
if startDlg.OK:
dlg1 = gui.fileOpenDlg()
print(dlg1)
if type(dlg1) is not 'NoneType':
if type(dlg1) is not type(None):
dlg2 = gui.fileOpenDlg()
if type(dlg2) is not 'NoneType':
if type(dlg2) is not type(None):
ready = True
if ready:
thisInfo = startDlg.data
Expand Down Expand Up @@ -227,7 +227,7 @@ def reliability(verboseMatrix, verboseMatrix2):
doneDlg.show()
if doneDlg.OK:
sDlg = gui.fileSaveDlg(initFilePath=os.getcwd(), initFileName=str(thisInfo[0])+'_'+str(thisInfo[1])+'_Stats.csv')
if type(sDlg) is not NoneType:
if type(sDlg) is not type(None):
headers3=['WeightedPercentageAgreement', 'CohensKappa','AverageObserverAgreement','PearsonsR']
outputWriter4 = csv.DictWriter(open(sDlg,'w'),
fieldnames=headers3, extrasaction='ignore',lineterminator ='\n')
Expand Down

0 comments on commit 0d041e1

Please sign in to comment.