Howdy, Stranger!

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

Supported by

Reading CSV File

Hi,


I programmed an opensesame experiment with a javascript backend, and I successfully uploaded it onto JATOS. I want the experiment to read all of the conditions from a CSV file that would be available globally for an online experiment. My question is: can I upload a CSV onto JATOS? Or how exactly should I link my experiment with a CSV that would be available globally?

I tried hosting the CSV file on Google Drive but that did not work due to CORS issues.

Thanks in advance!


Best wishes,

Elinor

Comments

  • Hi Elinor,

    You should be able to simply add your .csv file to an arbitrary subfolder in your study. If you program and edit your study on a local JATOS installation first (which we recommend, for these cases exactly), you can just add the file in your file system. Then, when you export the study from your local JATOS and import it into the server JATOS, you'll get the csv packed inside.


    Hope this helps

    Elisa

  • Hi @elisa ,


    Thanks for the advice! I think I got the general idea, and I installed JATOS locally. And then how exactly do I proceed? I tried moving the CSV file to the JATOS folder and to read the file in opensesame using the pool object and other parsing functions but none have worked so far. Any tips would be welcome.

    Thanks again!


    Best wishes,

    Elinor

  • Hi Elinor,

    You would need to:

    • Install JATOS locally (as you've done already)
    • Import your study, written on OSWeb. Basically what you described before. Instead of uploading into the (server) JATOS, just import it on your local JATOS.
    • On the main JATOS page, if you scroll down, you'll see a note that says: "Where are my files". That's the location, in your local filesystem, where your study files are.
    • Just open that folder, and then you can place your CSV in there, within the folder of your .
    • (I can't tell you how to change your script so that the csv file is read - that's a question for opensesame, but from what I understood, you already know how to do that)
    • Then go to Study -> export. This will give you a new jzip file with the csv inside, that you can them import into the sever

    Let me know if something isn't clear

  • Hi @elisa ,

    Thanks for the help!

    Everything worked out with the local as well as the global server. I realized that what I was missing was the pool of files, onto which I can upload the CSV in opensesame itself (View --> Show file pool). I simply uploaded the CSV to the pool and then called it using this script.

    Thanks again.


    Best wishes,

    Elinor

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