Giter Club home page Giter Club logo

Comments (9)

mahiluthra avatar mahiluthra commented on June 12, 2024

Hi to run this experiment on cognition.run, do the following:

  1. Create an account and a new task.
  2. Click on Source Code of the task
  3. Upload all supporting .js and .css files--these are in the plugins and css folder within the jspsych-6.0.4 folder. From the css folder, only upload jspsych_digitspan.css (uploading all the other css files for other tasks will mess up the formatting).
  4. Change the jspsych library version to 6.0.5
  5. Copy paste all code that is within the <script> tags from digit_span_task.html.
  6. If you don not want your participant's data to be downloaded to their local computer, comment out line 226--timeline.push(dataLog)

This is the task I created just now following the above steps: https://1plpk9wavy.cognition.run/
You can similarly create your own task!

Let me know if you have more questions.

from working_memory_tests.

Abdolnoor avatar Abdolnoor commented on June 12, 2024

I did what you said in order but it says that the task is not ready yet. Maybe it need to upload the stimuli? if yes, where can I find the stimuli?

from working_memory_tests.

Abdolnoor avatar Abdolnoor commented on June 12, 2024

And what should I do if want to add more stumuli with longer digits until 10 digit in each trial for example 123456778 1235589076

from working_memory_tests.

mahiluthra avatar mahiluthra commented on June 12, 2024

There is no stimuli for the digit span test. Maybe change the jspysch library version to 6.0.5? I have edited the steps above to include this

from working_memory_tests.

sepidehnamvarrad avatar sepidehnamvarrad commented on June 12, 2024

Hello!
I tried your code in the cognition run. It gives an uncaught error in line 285. Also, I didn't in general realized what this line is supposed to do.
partN = partN.replace(/['"]+/g,'')

from working_memory_tests.

mahiluthra avatar mahiluthra commented on June 12, 2024

Hi!
Which task are you attempting to run? The digit span test does not have a line 285! Here is a backward digit span test that is working for me on cognition.run: https://1plpk9wavy.cognition.run

The line that you pasted above (partN = partN.replace(/['"]+/g,'') simply removes extra quotation marks around the participant name/id. When the task starts, participants are prompted for their id--the previous line (partN = jsPsych.data.get().last(1).values()[0].partNum) stores the input as partN and the current line cleans extra quotation marks around that input. Does this make sense?

If you do not need to store participant id, change line 216 to timeline = [] and comment out line 226 (timeline.push(dataLog))

from working_memory_tests.

Abdolnoor avatar Abdolnoor commented on June 12, 2024

from working_memory_tests.

mahiluthra avatar mahiluthra commented on June 12, 2024

Please make sure that you have copy pasted the script from digit_span_task.html properly (step 5 above). You need to copy everything after the <script> tag (from line 16 onward) and before the </script> tag (before and including line 235).

And ensure that you have appropriately added all the supporting files (step 3 above).

Please let me know if it starts working.

from working_memory_tests.

mahiluthra avatar mahiluthra commented on June 12, 2024

I cannot see the image that you have posted and I am therefore unsure what error you are running into.

from working_memory_tests.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.