# Editing Pavlovia Experiments

**URL:** <https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939>\
**Category:** Online experiments\
**Created:** [May 28, 2019, 8:01pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939 "2019-05-28T20:01:14Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [July 4, 2019, 6:50pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/21 "2019-07-04T18:50:30Z")

</div>

I took a look at your most recently updated repo at [https://gitlab.pavlovia.org/MRLab/brazilianfractions](https://gitlab.pavlovia.org/MRLab/brazilianfractions), and the spreadsheet called `"Practice_Stimuli_Fractions_brazil.xlsx"` still has no header for column K, as shown above. The problem may be that it looks like there is a header because the text from column L overlaps. To really see it, you have to expand all your columns, or you could just delete column K. When you have done this, sync your project and make sure that the updated spreadsheet was copied into the HTML/Resources folder.

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 5, 2019, 4:53pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/22 "2019-07-05T16:53:32Z")

</div>

Thank you so much, it finally seems to be working. I think I wasn’t updating the correct file the entire time. I will check my other experiments as well and see if they were suffering from the same issue.

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 5, 2019, 6:15pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/23 "2019-07-05T18:15:04Z")

</div>

So I have two other experiments that are still giving me trouble, BrazilianSpinners and BrazilianDecimals. I applied the adjustments to the xlsx files but when I upload, no html file is created for BrazilianDecimals on github and for BrazilianSpinners it will not even push anything to Pavlovia at all, instead I get this error from PsychoPy:

 ![BrazilianSpinnersError](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/4/e4b35cec46efcb68859808dd03aa0aae108a05be.png) . Is this occuring because of duplicate variable names or because of something else?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [July 5, 2019, 6:38pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/24 "2019-07-05T18:38:15Z")

</div>

It means that something went wrong and git was interrupted when trying to sync your repo, and now the files are locked. All you have to do is go to the `brazilian_spinner_task/.git` folder and delete the `index.lock` file and start again.

BTW, if you cannot see the .git folder, it means it is hidden, so you have to go to your Windows Explorer folder options and select the option to show hidden files.

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 5, 2019, 8:03pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/25 "2019-07-05T20:03:10Z")

</div>

Good call on the hidden file, sir. I deleted it and it uploaded on its own for the first time (initially I did it manually without a Linux terminal which took very long). However when the first trial begins I get " \* when setting the image of ImageStim: spinner\_Right

- **the argument: 2 is not an image" }**". This is on BrazilianSpinners. I am still double checking my other experiment as BrazilianDecimals will upload through PsychoPy3 but the html file is not generated on github.

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 5, 2019, 8:26pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/26 "2019-07-05T20:26:15Z")

</div>

Scratch the comment about not uploading, I had a conditions file with the extensions still in it that I didn’t see before. Once I removed them it uploaded, however I am getting a new error: \* when importing condition: Decimals\_Block1\_072418

- **extension: Decimals\_Block1\_072418 currently not supported.**  
This is for BrazilianDecimals, the previous error for BrazilianSpinners still persists. Forgive me if my explanation of what is going on is convoluted. Thank you again for your help in these matters so far, this is the farthest I’ve gotten with these experiments as of yet.

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [July 5, 2019, 9:27pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/27 "2019-07-05T21:27:24Z")

</div>

This error is because you removed the extensions from the conditions file `Choose_block_decimals.xlsx`. You are trying to use the `Decimals_Block1_072418.xlsx` spreadsheet, but as the extension has been removed, it will not work because the browser does not know what the file type is.

So, you cannot insert the name of a conditions file into itself, because then it tries to read itself for infinity. But, you can insert the name of a conditions file that is different. For example, my `cond.xlsx` file attached, can call condition file `A.xlsx`, and from `A.xlsx` I can access the `myFraction` variable.

[cond.xlsx](https://discourse.psychopy.org/uploads/short-url/5zaUoF3iMesVvNyHuy3P8bBeqTG.xlsx) (8.1 KB) [A.xlsx](https://discourse.psychopy.org/uploads/short-url/oNYcvodeWGlfzSRzEA5OjeictjK.xlsx) (8.1 KB)

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 5, 2019, 10:24pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/28 "2019-07-05T22:24:35Z")

</div>

What you said made perfect sense and was a simple fix, thank you. I am down to my last error before formatting. I will be sure to inform my colleagues of this information to prevent issues with future experiments as we plan to use Pavlovia much more in the future.

With my BrazilianSpinners trial, I keep getting \* when setting the image of ImageStim: spinner\_Right

- **the argument: 5 is not an image" }** with a different numeric value every time. Is this experiment just not compatible with Pavlovia? This is the only experiment giving me this type of error, while the others were more similar to each other.

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [July 5, 2019, 11:02pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/29 "2019-07-05T23:02:20Z")

</div>

Great, nearly there. Yes, this is a problem using filenames which start with numbers. Currently, if you put a filename in a conditions file and its starts with a number, it get parsed as a number e.g., `1.png` becomes `1`. I am going to request this to be fixed, but for now I am afraid you have to change the filenames.

Here is a script that will do that [rename.py](https://discourse.psychopy.org/uploads/short-url/f5k9ukAxINoY7CtWCo7pQXWuEkG.py) (107 Bytes) . It will find all png files and add the letter ‘a’ to the start of the filename. Then, all you need to do is change your conditions files to match. To use this file, just add it to the same folder as your project e.g., in the parent folder, not the html folder. You can open and run it from PsychoPys Coder. Remember to back up your images just in case. Finally, change the condition files, then resync and try again.

Let me know if you have anymore issues.

---

<div class="post-metadata">

**Author:** ![JavanMRLab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/javanmrlab/32/4866_2.png) [@JavanMRLab](https://discourse.psychopy.org/u/JavanMRLab)\
**Post date:** [July 21, 2019, 6:02pm UTC](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/30 "2019-07-21T18:02:33Z")

</div>

Hello again sir,

I’m having a problem with my stimuli being displayed. Does JavaScript ignore text after certain characters when given a number?  
I have a stimuli that is two decimals separated by spaces like “0.1 0.9” and only the 0.1 gets displayed. If I insert a letter before the first decimal, it then displays the entire string like “x0.1 0.9”  
Is there a workaround for this?

[Previous page](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939.md?page=1)
