GithubHelp home page GithubHelp logo

Comments (4)

shippy avatar shippy commented on June 10, 2024

As of a3c4b65, resuming at the beginning of the interrupted block is implemented in all tasks.

from psychtaskframework.

shippy avatar shippy commented on June 10, 2024

Idea: if save-after-trial is enabled, save into Data.blocks.current, which gets deleted in every addBlock? This also enables runBlock to check which trial it should start for ((1 + height(Data.blocks.current)) : blockLen). That's similar to how block resumption goes, and maybe cleaner.

from psychtaskframework.

shippy avatar shippy commented on June 10, 2024

Crossed out a lot of unnecessary logic above. Rough sketch of the logic to be implemented:

  1. Data.blocks.numRecorded is only incremented at the end of the block.
  2. runBlock checks if numel(Data.blocks.recorded) is larger than Data.blocks.numRecorded.
  3. If it is, then runBlock iterates k = height(Data.blocks.recorded{end}) : numTrials rather than k = 1 : numTrials.
  4. appendRow runs directly on the table in Data.blocks.recorded{end}, rather than on collectedData.
  5. saveData(Data) is run on every iteration of the trial if blockSettings.device.saveAfterTrial is true,
  6. When all trials have run, Data.blocks.numRecorded is incremented and data is saved again if saveAfterTrial || saveAfterBlock. (The OR is important -- if saveAfterBlock were false for whatever reason, the numRecorded update could get lost.)

from psychtaskframework.

shippy avatar shippy commented on June 10, 2024

This has been put to the front of the queue at Sharon's request. Pull request #88 implements and closes this issue.

from psychtaskframework.

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.