# Wakefield's Daily Tips

**URL:** <https://discourse.psychopy.org/t/wakefields-daily-tips/43371>\
**Category:** Blog\
**Tags:** online, pavlovia\
**Created:** [January 1, 2025, 3:36pm UTC](https://discourse.psychopy.org/t/wakefields-daily-tips/43371 "2025-01-01T15:36:55Z")\
**Posts on this page:** 1\
**Showing post:** 69

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [March 9, 2025, 11:34am UTC](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/69 "2025-03-09T11:34:08Z")

</div>

## Saving incomplete results

When I create a new study on Pavlovia, one of the first things I do is turn off “save incomplete results”.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/c/9c9c8669ea209f6ddac85233543e8c77db7ab3f1.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/2/22bba464d7868734c26295007519451187b7fa35.png)

The reason I do this is to avoid having lots of data files getting created while I build and test the experiment. This is especially important if you use credits rather than a licence, since each data file will cost a credit.

Even when turned on, saving incomplete results can be a bit hit and miss. The data is always saved if you press escape to exit full screen and then press escape again. It also seems to work if you press escape and then close the tab, but not if you press escape and then navigate to another web page within the same tab.

The other issue is that if you have saving incomplete results turned on, you will get near empty data files from anyone who exits near the start of the experiment, for example before consenting or while reading the instructions.

My recommendation is to turn on incomplete data saving in code at the point where enough results have been collected that you would consider using them. Be mindful of research ethics. If you have told your participants that they have the right to withdraw at any point in the study and the only way to withdraw is by pressing escape, then ethically you should not use their data.

With this in mind, the code to turn on incomplete data saving is:

```auto
psychoJS._config.experiment.saveIncompleteResults = true;

```

It should appear in a JavaScript code component or on the JS side of a Both code component.

In the [example](https://run.pavlovia.org/test-suite/incomplete-results) I wrote to test this today, I turn on saving incomplete results on the fourth iteration of the loop with:

```auto
if ((trials.thisN === 3)) {
    psychoJS._config.experiment.saveIncompleteResults = true; // enable partial data collection
}

```

As noted in the linked thread, this code may not work in Firefox, but I don’t know if that means that incomplete data saving doesn’t work at all, whether the value can’t be changed in code, or whether changing the value after the start of the experiment has no affect.

> [@Disabling partial data collection midway through an experiment](https://discourse.psychopy.org/t/disabling-partial-data-collection-midway-through-an-experiment/20461):
>
> I found a way to disable partial data collection midway. This is especially useful because credits are consumed even when very little data is generated. So we can enable partial data collection only after a certain amount of blocks have been performed and disable it until those blocks are completed. I needed this especially because my practice and main experiment are on the same link however the practice data is not needed and furthermore we ask the participant to abort the experiment when they…

---

_[View the full topic](https://discourse.psychopy.org/t/wakefields-daily-tips/43371)._
