Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

How can I access properties

Hi,

this may be a problem with a very easy solution but I couldn't solve it -.-.
I want to access the "content" of a property. For example: I want to access my data within the experiment. When I use the getter design.Experiment.data - and the output is the location of the object (). But how do I get to the object itself, i.e. the table?

Comments

  • I am not entirely sure I understand you correctly. The getter returns the actual object itself, not the location of it. The data object is an object that is writing data to a file.

    Florian Krause (Developer)
    http://www.expyriment.org

  • ah okay.. so is there a way to access the data without reading the file?

  • Well, you have the data yourself, before you write them to the file, right? :-)

    Florian Krause (Developer)
    http://www.expyriment.org

  • Well yeah :smiley: , that's exactly what I try to do but I don't know what to type in to get the full data as a table.
    When I type exp.data, I get the location (<expyriment.io._files.DataFile at 0x11fb18860>) but not the table in which the data is stored. In other words: Is there a command by which I can access that table of data?

  • What I meant is, you put in the data manually into the data file object (usually by doing something like exp.data.add(my_data). So, since you already have the data, before you manually put it into the data file object, there is no way to get the data from the object (other than opening the file of course).

    Thanked by 1PMKraemer

    Florian Krause (Developer)
    http://www.expyriment.org

  • Alright I see ^^ thanks!

Sign In or Register to comment.