fladd
About
- Username
- fladd
- Joined
- Visits
- 173
- Last Active
- Roles
- Member, Moderator
Comments
-
Dear Arianna, What is your screen refresh rate? I am asking, because you use timings (49ms) that do not seem to fall at multiples of common refresh rates (e.g. 60Hz, 100Hz, 120Hz). From what I understand, you script does the following if SOA is 50…
-
Hi, not directly in Expyriment. But you could probably attempt to manipulate the surface of the stimulus (which is a Pygame surface). I would, however, suggest to not do this, as it might break some Expyriment internal things for that stimulus. As…
-
Hi, sound1.play()exp.clock.wait(500)sound2.play() But hardware samples is much better. Concerning the second question: TextBox stimulus will handle multiple lines (with "\n").
-
Mmh, I am still a bit puzzled about why this happens. We will look closer into it. Thanks for the suggestion of a tutorial for more advanced users. This is certainly a good idea.
-
Dear Kolao, you can simply create two Audio objects, and then call the play method of each of them 100 ms apart. However, please keep in mind that auditory timing on a computer is not very accurate (with latencies of several hundreds of a second an…
-
Hi, could you send me the script that crashes?
-
Mmh, I have never seen this before. Very strange. What graphics card was that? Might also be helpful to get the output of expyriment.misc.get_system_info() for further inspection.
-
This seems to be a bug. Thanks for reporting it. It is not entirely clear why this happens, as mkstemp on my machine does correctly return a string with escaped backslashes. We will look into it. In the meantime, could you give us some more informa…
-
Correct.
-
Hi verkerm, it is a very basic operation. As the documentation says: "This blurs the stimulus, by scaling it down and up by the factor of 'level'." The scaling algorithm is Pygame's transform.scale, which is "a fast scale operation…
-
@AgnèsG, please just run the Python script I sent you earlier, and let me know what the output is. Thanks
-
No, works fine on Win10 with the current Pygame...
-
Ah, then it might again be Pygame expecting a UTF-8 encoded string, while the string is Windows file system encoded...Will check.
-
Hi Agnes, hi Sebastiaan, the error does not look familiar, but it indeed indicates an issue with file permissions. @AgnèsG, could you please run the following Python script on your computer and paste the output for me: http://stuff.fladd.de/4Agne…
-
This is indeed a bug in Expyriment. Thanks for reporting it. It will be fixed in the next version.
-
That is correct, you cannot iterate over this object. Why do you want to do this? Can you send me the code?
-
Sorry, when defining the callback function, skip the exp argument: def quit_after_60000ms_callback(): if exp.clock.stopwatch_time < 60000: return expyriment.control.CallbackQuitEvent()
-
Hi Ron, I think the easiest way would be to register a wait callback function that checks your stopwatch time. def quit_after_60000ms_callback(exp): if exp.clock.stopwatch_time < 60000: return expyriment.control.CallbackQuitEvent()exp…
-
Hi Sven, this will be very difficult to debug without seeing you code. Can you send me the script that crashes?
-
Mmh, this is not Python code. I think you accidentally posted in the wrong forum. This is the forum for Expyriment, which is a Python library for designing and conducting experiments. It looks to me that you are using OpenSesame. I will hence move …
-
Hi vleid, to set the colour of a TextLine stimulus, you need to give it the argument text_colour, which has to be a list with three arguments representing RGB values. I am afraid I do not fully understand the rest of your question (e.g. it is not …
-
Assuming your question is how to get two different block types (one negative, one positive emotion), where each has 5 trials that are randomly(?) drawn from two possible pictures, something along the lines of this should work: import expyriment as …
-
Hi Tanto, I am not sure I understand what it exactly it is you want to achieve. Could you maybe be a bit more specific? Best, Florian
-
Dear Ron, the process of plotting is not reversible. Once something is plotted it is "printed" on, and will be part of, the target stimulus (the blank screen in your case). Clearing a surface will clear the entire surface (i.e. delete ev…
-
Hi Jeremy, That is very strange, since even without explicitly calling save, Expyriment should always save your data files. This should even happen if your script crashes. A couple of questions: * How do you terminate the script in case it is ter…
-
Glad this is solved! Enjoy!
-
Mmh, that is strange. Could you give me the output of: import expyrimentexpyriment.misc.get_system_info() Also, has XQuartz been installed correctly?
-
Hi there, it seems that you are trying to use a font that is not available. Are you using any special fonts? Can you send me the content of your tutorial.py file. How did you install Expyriment?
-
Hi RonKatz, the Expyriment coordinate system has its origin in the center. It is an absolute system, with pixels being the unit. That is, if you plot something with a x or y value that is larger than half the size of the surface you are plotting it…
-
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>"…