Skip to content

Commit 5c8c5f1

Browse files
committed
get incremental_punishment from current conditions
1 parent 1bd4a67 commit 5c8c5f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ethopy/experiments/match_port.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Experiment(State, ExperimentClass):
5656
"punish_duration": 1000,
5757
"abort_duration": 0,
5858
"noresponse_intertrial": True,
59+
"incremental_punishment" : 0,
5960
**ExperimentClass.Block().dict(),
6061
}
6162

@@ -184,7 +185,7 @@ def entry(self):
184185
self.beh.punish()
185186
super().entry()
186187
self.punish_period = self.stim.curr_cond["punish_duration"]
187-
if self.params.get("incremental_punishment"):
188+
if self.curr_cond["incremental_punishment"]:
188189
self.punish_period *= self.beh.get_false_history()
189190
self.stim.punish_stim()
190191

0 commit comments

Comments
 (0)