Skip to content

Performance dynamics plot error for no-choice trials #4

@sjara

Description

@sjara

If no trials have choices by the time the first point of the "performance dynamics plot" is calculated (at trial 10, by default), the system gives the following error:

/usr/lib/python2.7/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py:186: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  self.atlasData[x:x+w, y:y+h] = rendered[key]
/usr/lib/python2.7/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py:148: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  arr = self.atlasData[x:x+w, y:y+w]
/usr/lib/python2.7/dist-packages/pyqtgraph/graphicsItems/ScatterPlotItem.py:183: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  self.atlasData = np.zeros((width, height, 4), dtype=np.ubyte)
/home/jarauser/src/taskontrol/plugins/performancedynamicsplot.py:105: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 4000 but corresponding boolean dimension is 1
  validCorrect = correct[validTrials] # SIZE:nValid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions