Howdy, Stranger!

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

Supported by

Export trial-by-trial data from an online OSweb exp running in JATOS

Hi,


We are looking for a way to export the data collected on each trial of our Opensesame exp run in JATOS to a dififerent web site in which we can perform online analysis using Python libraries, and then feedback the output of this online analysis back to our Opensesame experiment in JATOS trial by trial, any thoughts on this would be much appreciated.


cheers

david

Comments

  • Hi David,

    I think I understand what you want to do: The analysis would run on a different host in Python and you would somehow send data via an HTTP request to this host. So the process would look like: trial in OpenSesame -> HTTP request to different host -> analysis in Python -> HTTP response -> next trail in OpenSesame ...

    It's possible, although I probably wouldn't recommend it. You introduce another point that can fail: the host where you run your Python. Before it was only the JATOS server - now it's JATOS and the Python host. Another point is latency: those HTTP requests have to go via Internet which can take time depending on how good your participant's internet is. Is it feasible in your experiment that your participant waits for those requests to be responded between each trial? What if the response does not come?

    I would recommend to try doing this analysis in your participant's browser, in JavaScript. This way you skip the external host. But I don't know how difficult it is to reimplement those Python libraries in JavaScript.

    But if this is not possible you have to consider the latency of your requests and test your study thoroughly in the environment your participants might be in, sitting at home with a bad internet connection and a slow laptop. You cannot assume that just because it runs in your fast local network it will run similar in the outside world. What if Internet is slow or breaks: can your experiment continue from where it stopped (JATOS' batch session can help here).

    Best,

    Kristian

  • Hi Kristian, thanks a lot, the type of analysis we want to do can not be done using JavaScript, so the only way of doing it would be as you said:

    OpenSesame -> HTTP request to different host -> analysis in Python -> HTTP response -> next trail in OpenSesame

    My question is how to send the HTTP request to a different host from Opensesame, is there any documentation on this?

    cheers

    david

  • You better ask this question over in the OSWeb forum. There are the experts.

  • And for that, you should ask @Daniel

  • Hi @dsoto

    You can achieve what you would like to do using ajax requests: https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started

    This brings you in the realm of asynchronous programming though, so you will have to deal with some extra complexity. The biggest challenge you will face is letting osweb pause until a response has been received from the remote host and I sadly don't have a readily available solution for you to do so. Sadly we haven't built osweb with these asynchronous operations in mind, so it will be quite difficult to make it pause.

    Buy Me A Coffee

  • hi, thanks for the response!

    best,

    david

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