aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

random rewards broken in manual control #106

Open leoscholl opened 2 years ago

leoscholl commented 2 years ago
Traceback (most recent call last):
  File "/home/leo/code/brain-python-interface/riglib/fsm/fsm/fsm.py", line 154, in run
    self.fsm_tick()
  File "/home/leo/code/brain-python-interface/riglib/fsm/fsm/fsm.py", line 187, in fsm_tick
    if self.test_state_transition_event(event): # if the event has occurred
  File "/home/leo/code/brain-python-interface/riglib/fsm/fsm/fsm.py", line 209, in test_state_transition_event
    return event_test_fn(time_since_state_started)
  File "/home/leo/code/brain-python-interface/built_in_tasks/manualcontrolmultitasks.py", line 75, in _test_trial_complete
    if not self.rand_reward_set_flag: #reward time has not been set for this iteration
AttributeError: 'ManualControl' object has no attribute 'rand_reward_set_flag'