From bc54cef039ab45d50eb9b3c5586be42cdd54b773 Mon Sep 17 00:00:00 2001 From: Michael MacAskill Date: Wed, 30 May 2018 14:07:08 +1200 Subject: [PATCH] DOC: clarifying the type of the .data attribute 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. --- psychopy/data/trial.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/psychopy/data/trial.py b/psychopy/data/trial.py index 7dfaa98cf0..20c1310899 100644 --- a/psychopy/data/trial.py +++ b/psychopy/data/trial.py @@ -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