fladd
About
- Username
- fladd
- Joined
- Visits
- 174
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi anapinho, not a slider widget, but a similar solution that works with radio buttons: #!/bin/env python""" A radiobutton example in Expyriment."""__author__ = "Florian Krause <florian@expyriment.org>"…
-
Hi Ana Luísa, it does indeed relate to the resolution of the video. Expyriment does not perform any form of up or down scaling. Best, Florian
-
You will need to install Expyriment 0.9.0, yes. But this version runs also under Python 2.7, so there is no need to install Python 3 if you do not want to.
-
Hi, the new version of Expyriment (0.9.0) has a new Video stimulus. If you install it in the following way: python -m pip install expyriment[video] This should allow for mp4 videos to be played. Please also check the documentation at http://docs…
-
@sebastiaan @imnotamember Yes, that is correct. Although we would love to have a native 3D stimulus type in Expyriment that directly operates on OpenGL enabled surfaces! Having this in Expyriment would directly benefit OpenSesame of course. Right …
-
Dear Sarah, I think there is some confusion about what the Aggregator in the data_preprocessing package does. Its purpose is to aggregate data from several participants into a single file by creating per-subject averages for all factor-level combin…
-
Hi Sarah, so you are saying you only get the aggregated data for the first subject? Are the data files of the remaining 19 subjects named in the same way (i.e. starting with nback)? I also don't understand why you define "button" and &qu…
-
The Expyriment log files are all saved in a standard comma separated value (csv) format, and it should hence be relatively straight forward to convert them into any other data structure or parse them with external tools if necessary. The block names…
-
Hi Sarah, you have add_data_variable_names in your code, which is a method, not an attribute, like data_variable_names which I suggested to use. Hence, either of the following two will work: 1. exp.add_data_variable_names(["response_keys"…
-
Hi Sarah, it seems that you forgot to add the data variable names to the data file. You have to define them once at the beginning of your experiment (see here for an example). In your case that would be: exp.data_variable_names = ["Response&…
-
Hi Juliette, I might miss something, but isn't your rule accessible at trials[0][2] at that point? I also did not understand why you need it to be defined as part of the block. Is this for logging purposes? (In that case, you could just do b.rule =…
-
Hi there, @sebastiaan When Expyriment detects that it is run from an interactive shell (i.e. ipython or IDLE) and that it is set to run in fullscreen mode, it will ask to switch to window mode, in order to stay interactive. This behaviour is neith…
-
Dear GuillermoTasero, you seem to be in the wrong forum. This is a forum about the Python package Expyriment. I will move this to the OpenSesame forum for you.
-
Dear GuillermoTasero, if you put your stimuli into Trials and those into a Block (let's call the object block for now, you can then simply shuffle all trials in a block by calling block.shuffle_trials()(see http://docs.expyriment.org/expyriment.des…
-
Yes, you can call expyriment.control.start with the argument skip_ready_screen=True (see also http://docs.expyriment.org/expyriment.control.html#expyriment.control.start)
-
Oh I am sorry, I just realized that there actually is a way to not show the logo! (It has been so long ago since we implemented this...) Just run this before initializing: expyriment.control.defaults.initialize_delay = 0 Best, Florian
-
Hi boris, There is currently no way to not show the logo at the beginning. However, as the logo is shown already in the initialize() method, I suggest to simply initialize the experiment before your participant enters the room. Experiment and Pyth…
-
Dear Arnaud, you could use the current development version of Expyriment (which has the bug already fixed): * Download the source archive * Unzip the source archive * In the command line navigate into the unzipped directory and call: python setup.…
-
Hi Juliette, the colour needs to be specified in RGB terms (e.g. [255, 0, 0] for red). To simplify this, we provide constants for common colours in expyriment.misc.constants (e.g. expyriment.misc.constants.C_RED for red). So in your particular case…
-
Glad to hear it is resolved. No need to delete the discussion though. Might be helpful for others in the future. Best, Florian
-
Can you give me the full error message? My suspicion is that you have a file called test.py in the same directory, leading to overwriting the internal test package from future (which is a new dependency of Expyriment 0.9.0).
-
The worst case scenario is that you have a jitter of unknown size, leading to (a) you not knowing when exactly the sound was actually played via the speakers, and (b) an unstable rhythm, when playing back sounds consecutively like you do.
-
To be honest, I do not understand what you are aiming to do in that code. The my_callback function does not do anything it seems (well, it checks for the keys, but it does nothing with the results of that check). If I do understand correctly what y…
-
Hi there, can you give a code example? In general, though, if you need very stable and precise audio timing, I would suggest to have the audio played by a dedicated hardware audio sampler, triggered via MIDI from the PC that records the responses.
-
Hi there, I am not sure what you mean with middle arrow key? In addition to left and right, there is also up (misc.constants.K_UP) and down (misc.constants.K_DOWN).
-
Hi Juliette, instead of open("se_de1.csv"), try to import codecs and then codecs.open("se_de_1.csv", encoding="utf-16"), and see whether that works.
-
Hi Juliette, how about this: # Save the excel file as .csv file (in Excel), then read it easily in Expyrimentdata = []with open("data.csv") as f: for line in f: data.append(line.strip().split(","))# Loop over sublists…
-
Glad I could help!
-
Hi Juliette, canvas.present()trial.stimuli[0].present(update=False)trial.stimuli[1].present(clear=False, update=False)trial.stimuli[2].present(update=False) What happens here is: * canvas is presented, but never seen on screen, as you immediately…
-
Actually, if you see this exact error (from above): log_txt = u"{0},{1}".format(log_txt, log_comment) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) Then it seems that you are not usi…