Avatar

Howdy, Stranger!

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

Supported by

Pascal

About

Username
Pascal
Joined
Visits
114
Last Active
Roles
Member, Moderator
Thanked
7

Comments

  • Hi! let's start with an example using the example dataset from mousetrap: library(mousetrap) mt_example <- mt_spatialize(mt_example) mt_example <- mt_cluster(mt_example) By default, mt_cluster stores the cluster of each trial in a ne…
  • Hi Tommaso, I have amswered your questions in your original post in the mousetrap category: http://forum.cogsci.nl/index.php?p=/discussion/4608/go-no-go-respond-moving-the-mouse Best, Pascal
  • Hi Tommaso, maybe first a general comment: if participants should move the mouse for a prespecified physical distance on the table, I don't know of a way that would exactly implement this procedure in OpenSesame. The easiest implementation I c…
  • Hi, sorry for the delayed reply - I was away for a conference and am only slowly catching up with my emails and the open forum posts. The functions listed above are unfortunately not included in the mousetrap package yet, as they still require…
  • You would have to make a few changes: # Set velocities for timestamps beyond 600 ms to 0 mt_example$trajectories[,,"vel"][mt_example$trajectories[,,"timestamps"]>600] <- 0 # Calculate maximum velocity mt_example$measures$vel_max_600 <- …
  • Hi Haoxue, indeed there seems to be an additional problem in case all positions in a trial are the same. However, what happens then is that mt_align_start_end does not work properly, result in every positiion to be NaN. This subsequently leads to…
  • You can use the mt_aggregate_per_subject function for this. If you specify a condition variable in use2_variables, the measures will be summarized per participant and condition. average_measures <- mt_aggregate_per_subject( mt_example, use…
  • Hi Haoxue, I think that the error is caused by trajectories that contain <= 2 logged positions. I would suggest that you check this in your data and potentially exclude all trajectories with <= 2 logged positions. # Load mousetrap librar…
  • Hi! that is in principle possible, but the specific implementation depends on the measure you want to use. The following code gives an example how you can calculate the Euclidean distance traveled from the beginning of the trajectory until tim…
  • That makes sense. So that means after the next release of OpenSesame the installation procedure for plugins will change as described above also for Windows and Linux users? Do you have a guess when the next version of OpenSesame is going to be relea…
  • Thanks for the update, @Daniel! I assume that this change needs to be implemented whenever a plugin / extension is installed, e.g., also when installing the latest stable version of mousetrap? So, the command import pip pip.main(['install', 'o…
  • Hi Marta, maybe it is a MacOS issue. Unfortunately, I don't have a Mac, so I cannot test it. Maybe @sebastiaan or @Daniel could have a look at it? That would be awesome. If there is a problem, it will probably be a general problem when installing …
  • I just moved the discussion to the mousetrap category.
  • Hi, I just checked installing the mousetrap development version via: import pip pip.main(['install', 'https://github.com/PascalKieslich/mousetrap-os/archive/master.zip']) I installed it in OpenSesame 3.2.5 under Windows 7. Everything worke…
  • Hi, this problem should not occur if you are using OpenSesame 3.2 together with the latest development version of the mousetrap plugin - as discussed here: https://github.com/pascalkieslich/mousetrap-os#installation You can install it via: …
  • Hi Mike, sorry for the delayed reply - I was on holiday and afterwards gave a workshop at a summer school (on mouse-tracking ). The MD and AOI classification functions are not included in the mousetrap package yet, as they still require a l…
  • I just checked this and the following script resets the cursor correctly in full screen mode: my_mouse = Mouse(visible=True) my_mouse.show_cursor(True) my_mouse.set_pos((300, 200)) button, (x, y), timestamp = my_mouse.get_click(visible=True)
  • Hi sollago, in this case the solution would be as you described, i.e., setting the duration of the sketchpad to 0, following with a mouse_response item making sure that the option Visible mouse cursor is selected. I am also using OpenSesame 3.2.4 …
  • Hi sollago, as this discussion is a general OpenSesame question, I have moved it to the OpenSesame category. To replicate your problem, it would be very helpful if you could report the OpenSesame version you are using, the backend and the oper…
  • Hi Mike, Regarding velocity (1): yes, it definitely is best to remap the trajectories beforehand (the example trajectories in mt_example are already remapped). Regarding velocity (2): that's a good point and unfortunately (in my view) there is…
  • Regarding two: I don't think this assumption is correct. I think the MD threshold of 0.9 is applied on the raw MD values calculated by MouseTracker. As MouseTracker transforms the original pixel values into its own metric (x values between -1 and…
  • Hi Mike, regarding one: yes, it is possible to do this in the mousetrap R package. Here are two examples: Example 1 that is close to the Freeman (2014) plots: # calculate signed velocity based on movements along x dimension mt_example &l…
  • Hi, that sounds weird indeed. Maybe just a remark from what I inferred from the screenshots you provided: you have set the logging resolution to an extremely small value (2 ms). I think this is unlikely to cause the problem but I would still sugg…
  • Hi Dirk, I would like to help with this problem, but I think that it would be easier to test if you could provide a demo version of the working experiment and a demo of the defective expriment (not just the slider code). Besides, have you tested bo…
  • Hi Lisa, you can also stay with the old version if you want to (if you use the new OpenSesame version, please be sure to install the latest development version of mousetrap). However, none of this should influence the ability to reset the mous…
  • Hi Lisa, hm, that's strange. Which OpenSesame version are you using? And does the screen resolution set in the experiment settings correspond to the resolution of the computer screen? Best, Pascal
  • Hi there, it should work under Windows as well. Which backend are you using? The mousetrap plugin should be used in combination with the xpyriment or legacy back-end. (it works in principle with the psychopy backend as well - with the notable ex…
  • Add on: In new versions of OpenSesame and mousetrap, you can now also use named elements to define buttons (see steps 2 and 3a in the mousetrap_response documentation). Currently this only supports rectangle elements on sketchpads (we will add suppo…
  • Hi there, am I assuming correctly that participants should click on one of the images to indicate their response? If so, one option is to use the mousetrap_response item to define clickable areas on a sketchpad, that is, a rectangular area aro…
  • Hi Vatsal, I updated both mousetrap items so they should now be fully compatible with OpenSesame 3.2. Regarding Q1: yes, the MT_response class supports any number of buttons. Regarding Q2: Yes, OpenSesame's form_base item can be used to bot…