Michael is exactly right. ExperimentHandler came later and any data
received by a loop (TrialHandler) is passed on to the experiment, so
it's stored in both. But the ExperimentHandler can technically store
additional data, including things that occurred before or between loops.
For the standard csv output these things will be almost
indistinugishable. But if you save out to an xlsx file, for example,
that stores data according to loops, with one worksheet for each loop in
the experiment. Data saved using exp.addData() won't be included in that
output because the experiment doesn't know which loop it belongs to.
In your example the data does make sense in terms of the trials loop, so
I would attach it to that and the exp will automatically receive a copy.
cheers,
Jon
--
Jonathan Peirce
Nottingham Visual Neuroscience
http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.