Giter Site home page Giter Site logo

Comments (8)

alocher avatar alocher commented on June 3, 2024

Hi Andrea, I am not sure I have an answer for you on this. Did you create a new stimuli file and stimuli for the existing ChoiceReaction task? Does it work fine when running online? Are you running your instance locally or on the web?

from tatool-web.

andreadecesarei avatar andreadecesarei commented on June 3, 2024

from tatool-web.

alocher avatar alocher commented on June 3, 2024

The error you are describing makes me wonder if something is going wrong with the preloading/caching of stimuli images as the odd behavior you describe with images sometimes appearing and sometimes not can be caused by the browser not having the images readily available in the cache.
Can you check if you kept the logic in the service init() method to load the stimuli file the same as in the original ChoiceReaction? Also do you use the exact same stimuli file format (column stimulusValueType and column stimulusValue with image files (e.g. jpg, jpeg,png,gif)?
I assume if you use the same stimuli with the original tatoolChoiceReaction executable it works? You can also share your Executable code with me if none of the above seems to help.

from tatool-web.

andreadecesarei avatar andreadecesarei commented on June 3, 2024

from tatool-web.

andreadecesarei avatar andreadecesarei commented on June 3, 2024

from tatool-web.

alocher avatar alocher commented on June 3, 2024

Hey Andrea, I appreciate I haven't gotten back to you on this for a while. Just wondering if this is still an issue for you?
Looking at the attached Executable it's missing the logic in the init() to only return once the load of the stimuliFile (and therefore the potential images the stimuliFile refers to) has completed. I assume you removed that bit as you mentioned above?

In theory you should be able to see this working in case you follow a similar approach as the tatoolChoiceReaction which is returning the Promise object and resolves it once getCSVResource has completed (after the .then). You can also monitor this if you open your developer console (f12) and look at the Network Tab while you're starting your module. You should see your images being requested at this point before it moves on to start showing your first Executable.

from tatool-web.

andreadecesarei avatar andreadecesarei commented on June 3, 2024

from tatool-web.

alocher avatar alocher commented on June 3, 2024

Sounds good, I'll close this and you can just reopen if you get back to it.

from tatool-web.

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.