Range_replicatior and stimulus_group

Hi Chris,

I would like to know if you have some suggestions on how to use ‘range_replicator’ with not uniform steps? The problem I am having is actually this: I’m trying to call several image files with stimuli that have properties what don’t change linearly (and therefore the property I’m changing on them does not change linearly either). Is there any way I could to this with out having to name the stimuli individually?

Thank you!
mariana

(And to add a bit more of complexity: what if I would have not 1 but 2/multiple properties of these images that I would like to get addressed individually, and neither is linear?)

Hi Mariana,

A list replicator or selection variable might work.

Can you be more specific about the set of property values you want to use? Also, do the property values form part of each image’s file name?

Chris

Hi Chris,

Ideally I’d like to be able to do something like this (where steps_1
and steps_2
are predefined):


<stimulus_group tag=“myGroup” full_name=“fullname_3”>
<range_replicator tag=“Range Replicator_1” full_name=“fullname_3”
from=“1” to=“7” step=“1” variable=“z”>

<range_replicator tag=“Range Replicator_2” full_name=“fullname_3”
from=“1” to=“5” step=“1” variable=“zz”>
<action type=“assignment” variable="local_zz”
value=“steps_2[zz-1]” tag=“Reset miss count”>

</range_replicator>
</range_replicator>
</stimulus_group>

I guess this is not possible, but what would be the closer I could get from
this?

Thank you!

Hi Mariana,

I guess this is not possible, but what would be the closer I could get from this?

As I mentioned, you could use list replicators:

var z (
    scope = local
    type = integer
    default_value = 0
    )

var zz (
    scope = local
    type = integer
    default_value = 0
    )

stimulus_group myGroup {
    list_replicator (
        variable = z
        values = 13, 18, 23, 30, 38, 48, 52, 56, 60, 71, 99, 327, 336, 393, 402
        ) {
        list_replicator (
            variable = zz
            values = 400, 200, 100, 50, 25, 12.5
            ) {
            image_file image${z}${zz} (
                path = './im13-natLev${zz}-smp${z}grayscale.png'
                x_size = 3
                y_size = 3
                x_position = 0
                y_position = 0
                )
        }
    }
}

(I’ve attached the equivalent XML.)

Does that work for you?

Chris

Attachment: list_rep.xml (745 Bytes)

Thank you, Chris!