Skip to content

Commit a5a6d87

Browse files
committed
remove block
add only difficulty since block parameters are not used in Passive experiement
1 parent 5c8c5f1 commit a5a6d87

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ethopy/task/bar_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
# define session parameters
77
session_params = {
88
'setup_conf_idx': 0,
9-
'max_res': 1000,
109
}
1110

1211
exp = Experiment()
1312
exp.setup(logger, HeadFixed, session_params)
1413

1514
# define stimulus conditions
1615
key = {
17-
'center_x' : 0,
18-
'center_y' : 0,
1916
'max_res' : 1000,
2017
'bar_width' : 4, # degrees
2118
'bar_speed' : 5, # degrees/sec
@@ -28,15 +25,15 @@
2825
'direction' : 1, # 1 for UD LR, -1 for DU RL
2926
'flatness_correction' : 1,
3027
'intertrial_duration' : 0,
28+
'difficulty' : 0,
3129
}
3230

3331
repeat_n = 10
34-
block = exp.Block(difficulty=1, next_up=1, next_down=1, trial_selection='fixed', metric='dprime', stair_up=1, stair_down=0.5)
3532

3633
conditions = []
3734
for axis in ['horizontal', 'vertical']:
3835
for rep in range(0, repeat_n):
39-
conditions += exp.make_conditions(stim_class=Bar(), conditions={**key, **block.dict(), 'axis': axis})
36+
conditions += exp.make_conditions(stim_class=Bar(), conditions={**key, 'axis': axis})
4037

4138

4239
# run experiments

0 commit comments

Comments
 (0)