Comments (4)
I didn't explain my concern about this very well - the downside is the code for working out how to write the script will get rather more confusing (even though it should be reasonably easy to write first time) and maybe it isn't worth having confusing internal code for a non-critical feature like this.
from psychopy.
I am not completely sure if its related, but it might be useful in this situation (which came up for me and also someone else at the workshop): if you set a component's value (via a code snippet in a field in a builder window) to $value at the start of a routine, you get an error at initialization time (because the variable is unknown at that point). the non-obvious work around I used was to set value=None at the start of the experiment via a code component (so that variable "value" would be defined, even if its value was meaningless). so it sounds like only expecting things to be defined at the start of the routine would be good?
from psychopy.
Yes, this is the same issue, and I've also been seeing it more and more as an issue. You got the correct workaround too, but it's kind of ugly. I've promoted the issue to 3 ticks.
from psychopy.
Done (commit fe253ea)
from psychopy.
Related Issues (20)
- [Bug]: Inconsistent data for routines outside of trial loop HOT 1
- [Bug]: import psychtoolbox has '_AllocateHIDObjectFromIOHIDDeviceRef' error from PsychHID and Cython HOT 3
- [Bug]: extraInfo added to trial handler does not appear in wide text output HOT 1
- [Feature Request]: Standardize checking status of movie stimulus playback in PsychoPy and PsychoJS HOT 1
- ZIP releases (i. e. for classroom installations) HOT 1
- [Bug]: git clone fails if directory name is not specified.
- [Bug]: app fails to launch on a server HOT 8
- [Bug]: Hindi glyphs (with matras/ diacritics/ vowels) not displaying in any PsychoPy version (both coder and builder) HOT 7
- [Bug]: Selecting audio device in builder and coder. HOT 4
- [Bug]: 'fast' operations (contrast, opacity, etc.) are slow in recent versions HOT 2
- [Bug]: AttributeError: 'SoundPygame' object has no attribute 'seek' HOT 4
- [Bug]: Error when clicking Save in Coder when no file open: AttributeError: ‘NoneType’ object has no attribute ‘filename’
- [Bug]: ioHub cannot find tracker HOT 1
- [Bug]: default_eyetracker.yaml file for Gazepoint eyetracker is not found HOT 4
- [Feature Request]: Fill screen with stimuli such as video. in their max size without altering aspect ratio I.E. Don't stretch it, , just fill the screen, and maintain aspect ratio: Example code inside HOT 3
- [Bug]: hardware.keyboard.waitKeys crash on Windows 11 HOT 2
- [Bug]: Builder not correctly updating code when options are changed HOT 3
- [Bug]: Python 3.11 and 3.12 manual installation fails HOT 1
- [Bug]: Conda installation via `psychopy-env.yml` python dependency fails
- [Bug]: Can't run PsychoPy after conda installation on Mac Sonoma HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psychopy.