Skip to content

Commit

Permalink
DOC: clarifying the type of the .data attribute
Browse files Browse the repository at this point in the history
Tiny change to document that the .data attribute of a `TrialHandler` is actually a `DataHandler` (a subclass of `dict`), rather than a standard dictionary, making it easier to understand why it has a `.add()` method and so on.
  • Loading branch information
m-macaskill committed May 30, 2018
1 parent 3ab9072 commit bc54cef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions psychopy/data/trial.py
Expand Up @@ -107,8 +107,9 @@ def __init__(self,
:Attributes (after creation):
.data - a dictionary of numpy arrays, one for each data type
stored
.data - a dictionary (or more strictly, a `DataHandler` sub-
class of a dictionary) of numpy arrays, one for each data
type stored
.trialList - the original list of dicts, specifying the conditions
Expand Down

0 comments on commit bc54cef

Please sign in to comment.