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
175
Last Active
Roles
Moderator
Thanked
14

Comments

  • Hi, if you know / use R, you could use the read_bulk function from the readbulk package to merge all xlsx files. The command would look something like this assuming that you have one folder named raw_data that contains all xlsx files to merge. …
  • Hi Mike, I think the following example illustrates what you would like to do: library(mousetrap) # Import example raw data mt_data <- mt_import_mousetrap(mt_example_raw) # We assume a centered coordinate system. # If not, you can use mt_a…
  • Hi Hansol, thanks, great to hear you like it . In the development version of mousetrap that you are using, there are two ways how to define buttons and you are kind of mixing the two of them. I would suggest to use the first variant (defining …
  • Hi Viola, please use the following to link to find an updated file for the mousetrap_response plugin that will set the mouse cursor to invisible while the mousetrap_response item is running. Note that this assumes that you are using the most rece…
  • Hi Viola, you cannot influence the visibility of the mouse cursor while mousetrap is running, as it is internally enforce that it is visible (as I could not think of a use case with an invisible cursor). However, I could provide you with a modified…
  • This script would classify everything as no response that is within a rectangle of +/- 30 pixel around the screen center (0,0): xpos = var.xpos_new_mousetrap_response ypos = var.ypos_new_mousetrap_response if var.response_new_mousetrap_response …
  • Hi Viola, how would you like to define this range? e.g., a rectangular area around the start position? Best, Pascal
  • Hi Viola, if you want to define "attempt" as any movement (even a single pixel) that did not reach one of the buttons within the time limit you can use the initiation_time variable (which will be None if there was no movement in the trial). You c…
  • 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…