diff --git a/rMtS.py b/rMtS.py index d828addf3671a0ffa3d0dab95b2a41ab7d478af3..282dd390c34ca716ac84055147624f7ab9cffd26 100644 --- a/rMtS.py +++ b/rMtS.py @@ -486,7 +486,10 @@ if __name__ == '__main__': itemToWrite = [None]*5 # 5 columns button = [] for item in log: - if len(item) < 2 or item[1].find('EXP') == -1: continue + if len(item) < 2 or (item[1].find('EXP') == -1 and item[2].find('Stimulation') == -1): continue + if item[2].find('Stimulation') >= 0: + ev.writerow([round(float(item[0]),4), 30, 'Stimulation_'+expInfo['stimulation intensity [mA]'], None, int(item[2].split(' - ')[2].split(': ')[1])]) + continue if any(item[2].find(evs) >= 0 for evs in ['Sample', 'Match', 'Response']): if itemToWrite[0] is None: itemToWrite[0:3] = [round(float(item[0]),4), None, item[2].split(' - ')[0]]