Howdy, Stranger!

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

Supported by

InlineScript runs in parallel

edited November 2020 in OpenSesame

Hi,

I have a somewhat lengthy pseudorandomization inline script for my item list that I would like to run before my experiment begins (Takes approx. 2min). However, that doesn't seem to work as planned:

1) The code execution is very slow - I can run it in the console in opensesame at normal speed, but when executed during the experiment it is suddenly very slow.

2) The randomization script executes in parallel to the rest of the experiment (canvas items, response items start running while the randomization of the list hasn't finished) and I am not sure why (independent of whether I execute the randomization during the prepare or run phase).

Is there a way that I can perform the randomization online and in sequence? I figure worst case I have to prepare my lists beforehand and read them in as csv's.

I would appreciate any help/feedback anyone could give me!


Thank you already in advance!

kind regards,

Julius



Comments

  • Hi @JKricheldorff ,

    1) The code execution is very slow - I can run it in the console in opensesame at normal speed, but when executed during the experiment it is suddenly very slow.

    I suspect it's not the code as such that's slow, but other aspects of the experiment, notably display presentation.

    The randomization script executes in parallel to the rest of the experiment (canvas items, response items start running while the randomization of the list hasn't finished) and I am not sure why (independent of whether I execute the randomization during the prepare or run phase).

    The script, as you've implemented here, will run serially during the Prepare phase of the experiment, so basically as one of the first things in the experiment. So not in parallel! What makes you think that the code is executed in parallel?

    And what kind of library are you using tho implement the constraints for the randomization? Doesn't look familiar to me!

    — Sebastiaan

  • Hi Sebastiaan,

    Thanks for your reply!

    I suspect it's not the code as such that's slow, but other aspects of the experiment, notably display presentation.

    Okay, that is what I suspected. Then it probably is better I read in the lists as not to mess with the rest of the experiment.

    The script, as you've implemented here, will run serially during the Prepare phase of the experiment, so basically as one of the first things in the experiment. So not in parallel! What makes you think that the code is executed in parallel?

    And what kind of library are you using tho implement the constraints for the randomization? Doesn't look familiar to me!

    I wrote the randomization myself in the hopes that I could implement it in the OS experiment using a mix of shuffling and backtracking on a pandas data frame. I made it print statments when it reached a certain stage in the randomization process. The randomization can take one to a few minutes. However, my screen displays already started much earlier and in the console I could still see my function printing at which stage of the randomization it currently was. Hence I suspected that something must have occurred in parallel.

    I have now found a work around by simply doing the randomization before and read in the resulting table for my items. I think that is probably the safest option - so i think I have my solution. Thank you for your reply though and creating this awesome program!

    Best,

    Julius

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