Howdy, Stranger!

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

Supported by

[open] Logger info to generate the variable for the next trial run

edited May 2014 in OpenSesame

Hello, thank you so much for this wonderful free-source program! I must admit I am extremely new to coding and have very limited knowledge of using Python. Just wanted to hedge with that, so please excuse me if this seems intuitive!

I am constructing a design that will track how a language evolves over the course of 40 participants. To do so, I need to be able to use one person's responses to constitute as the input, or new stimuli, for the next participant and repeat. I am sure this is a manipulation I need to specify in the logger file, but I am unsure how to execute this task. Any help would be tremendously appreciated. Many thanks!

Comments

  • edited 6:09AM

    Hi!

    This is doable, but will require some inline (Python) scripting, as it will not be possible to do it using standard OpenSesame plug-ins.

    In general, what you will need to do, is to read the CSV output from the previous participants. This is quite straightforward in Python, but I would advise you to read up on the language. An example snippet is provided below:

    # open a text file
    textfile = open("example.csv", 'r') # the 'r' stands for 'read mode'
    
    # read the contents
    data = textfile.readlines()
    
    # close the textfile again (the contents will still be
    # available, as we stored it in the "data" variable)
    textfile.close()
    
    # parse the lines
    for i in range(len(data)):
        # remove some clutter from the line
        data[i] = data[i].replace("\n","").replace("\r","").replace("\t","").replace("'","").replace('"',"")
        # turn the line (a string) into a list, by splitting
        # it on the commas
        data[i] = data[i].split(",")
    
    # the first line of an OpenSesame output file is
    # always a header
    header = data.pop(0)
    

    After this, you end up with two lists:

    # the header looks like this:
    header = ['var_a', 'var_b', 'var_c']
    
    # the data looks like this:
    data = [[1, 2, 3], [4,5,6], [7,8,9]]
    

    After learning a bit of Python, you will probably be able to understand the snippet above, and perhaps even to use it in an experiment. If not, please do post any further specific questions on the implementation.

    Good luck!

    Edwin

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games