Skip to content

KeyError: 'neutral_trial' #235

Description

@carmichaelong

dynamic trial attempts to be processed but there's no neutral trial found in the session.

current error message pop-up: Error in processing, you may want to re-record this trial

could improve message for this specific type of failure

Traceback (most recent call last):
  File "app.py", line 154, in <module>
    processTrial(trial["session"], trial["id"], trial_type=trial_type, isDocker=isDocker)
  File "/workspace/utilsServer.py", line 189, in processTrial
    getModelAndMetadata(session_id,session_path)
  File "/workspace/utils.py", line 850, in getModelAndMetadata
    neutral_id = getNeutralTrialID(session_id)
  File "/workspace/utils.py", line 526, in getNeutralTrialID
    elif session['meta']['neutral_trial']:
KeyError: 'neutral_trial'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions