Howdy, Stranger!

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

Supported by

Try OSWeb 1.4 with new features for online experiments!

edited August 31 in OSWeb

(Update August 31: the latest prerelease is now 3.3.10a14.)

OSWeb 1.4 will be released soon. This is a substantial update with many new features for online experiments.

New features:

  • Many improvements to the inline_javascript item to bring it closer to the Python API:
    • Canvas support for programmatically creating displays
    • Common functions such as xy_circle()
    • pool object for access to the file pool
    • persistent object for sharing variables and functions between scripts
  • Support for .csv files as source for loop tables
  • Support for all color specifications, including HSL, HSV, and LAB color spaces
  • Support for form plugins (except form_base)
  • Support for custom HTML forms through the new inline_html item
  • Customizable welcome text (on the first screen that is shown)

OSWeb 1.4 will be officially released together with OpenSesame 3.3.10. But you can already try it now, thus helping us by finding any remaining bugs, and helping yourself by being among the first to get your hands on this cool new functionality!

How to update to OSWeb 1.4?

If you're using Windows, the easiest way to get OSWeb 1.4 is by downloading the latest prerelease of OpenSesame 3.3.10:

For other operating systems, including Mac OS, you can update the OSWeb extension in your existing OpenSesame installation. You can do this with pip (you may need to prefix pip with ! when running from the OpenSesame console):

!pip install opensesame-extension-osweb --upgrade
!pip install opensesame-extension-osweb --upgrade --user  # doesn't need admin rights

Or with conda :

!conda update opensesame-extension-osweb -y -c cogsci

Ubuntu users can install the latest (testing) versions of OSWeb and other packages through the Rapunzel PPA:

sudo add-apt-repository ppa:smathot/rapunzel
sudo apt-get update

For more information about how to update packages in OpenSesame, see:

Buy Me A Coffee

Comments

  • Fantastic new features - thank you Seb! ๐Ÿ˜ƒ

    Tested forms and they worked perfectly!

    Is there any documentation on how to use the pool object and the persistent object by any chance?

    Many thanks,

    Bo

  • Hi @boyao , glad to hear it works for you! There is some limited documentation for pool and persistent on this page:

    Buy Me A Coffee

  • That is great! Does this version also allow to change the source file of a loop using JavaScript? In an online experiment, I would like to pick a pseudo-random trial sequence (say 1 out of 24 files generated in Excel) and the [] notation seems not to be allowed for the file name field of a loop.

  • @HenkvanSteenbergen Yes, you can. The [var_name] notation also works for loop sources (if it appears not to, then that must be because of something different), so you can specify the loop source by setting a variable in an inline_javascript item.

    Buy Me A Coffee

  • Hi @sebastiaan,

    Love the new features! Thanks for this!

    I understand documentation is limited at the moment and that it's a pre-release. I was wondering whether you could give me a hint on how to go about modifying the welcome screen, though. Would love to give it a go (happy to report my experience here for other users).

    Best,

    Fabrice.

    Buy Me A Coffee

  • FabFab
    edited August 25

    Hi @HenkvanSteenbergen,

    Following up on Sebastian's reply, you can indeed select a csv file at random and use it as the source of a loop. Here's how to do it practically.

    First, ensure that your csv files are loaded in the pool.

    Use Javascript to select a digit at random (here I'm picking a digit between 1 and 5; you could of course easily change that to 1 and 24):

    // Picks a random digit between 1 and 5
    var pickedset=Math.floor(Math.random() * 5) +1
    // output info to console for monitoring
    console.log("Picked: "+pickedset)
    console.log("Picked file: stimset"+pickedset+".csv")
    // defines the variable containing the name of the csv file to be used
    vars.stimfile="stimset"+pickedset+".csv"
    

    Once you've defined stimfile as the variable containing the name of the file to use as the source, you can use the [ ] method like so:

    Make sure that the headers in your csv files match the names you use when setting up the objects to to be presented in your sequence:

    That's it!

    You can download my example here:

    I hope this helps. Hopefully it'll help you work out why it is not working in your task (using your browser's console or the debugger can be very useful to find the origin of the problem).

    Good luck!

    Fabrice.

    _____________________________________________________________________________________

    If you found my reply helpful and wish to invite me to a coffee, you can do so here ๐Ÿ˜‰: https://www.buymeacoffee.com/psyfab

    Buy Me A Coffee

  • Dear @sebastiaan,

    I have a question about exporting my experiment to Jatos if my experiment procedure has an inline script? When I check on my compatibility, it was showed item_inline script is not supported, is there any suggestion for me to solve this issue?


    Best,

    TZ

  • Hi @Tzlim,

    OsWeb is based on javascript, not Python, therefore you cannot use the regular python inline_script. Fortunately, since OSWeb, the inline_javascript is quite powerful and can do many things that the python inline_script can do.

    So in order to migrate your experiment to the web, you need to translate the the python bits to javascript bits. Check out the documentation. There is a lot of very useful information on how to go about it.

    Hope this helps,

    Eduard

    ps, if you have specific issues with your experiments and the adjustments to osweb-compatibility, it is better to open a dedicated discussion for it, rather than replying to this announcement-type discussion.

    Buy Me A Coffee

This discussion has been closed.

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