Code Monkey home page Code Monkey logo

Comments (3)

peircej avatar peircej commented on June 10, 2024 1

You have set the size of option1Image to be set every repeat rather than constant. When you do this the size is initially set to a fixed arbitrary value (in this case a value of 1) and only gets set to (win.size[0]/5,None) when the trial Routine actually begins (on each repeat of the loop). Your option3Image is set to constant so it gets its size setting applied when it is initialised.

So the image init code being written here is exactly as expected, but the code change you're looking for is not where you expected.

Now, there's still a question of why are the images are a different size when set during init or set later, and that's one we'll need to investigate 🤔

from psychopy.

MichaelWoodc avatar MichaelWoodc commented on June 10, 2024

You have set the size of option1Image to be set every repeat rather than constant. When you do this the size is initially set to a fixed arbitrary value (in this case a value of 1) and only gets set to (win.size[0]/5,None) when the trial Routine actually begins (on each repeat of the loop). Your option3Image is set to constant so it gets its size setting applied when it is initialised.

So the image init code being written here is exactly as expected, but the code change you're looking for is not where you expected.

Now, there's still a question of why are the images are a different size when set during init or set later, and that's one we'll need to investigate 🤔

Sharp eye! I hadn't noticed that! I'm editing everything next week, I'll see if changing those things you pointed out on my end can have a different effect. Thanks!

from psychopy.

MichaelWoodc avatar MichaelWoodc commented on June 10, 2024

I am thinking these issues may be related. The experiment I had been working on utilized Emotiv EEG components. I had to do some changes and disabled the Emotiv EEG components. After re-enabling them, I consistently recieved errors that cortex_rec_2 is not defined, or something along those lines. After creating an identical experiment from scratch it works!

I think that I am experiencing these issues when I disable a component for testing, then reenable it after, but I'm not entirely sure yet.

from psychopy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.