Sorry for the confusion. My code was coping with translating numbers to strings without ending .0. You just need listA.append(grid)
In the trial routine you do need thisA=listA.pop() and thisExp.addData(‘thisA’,thisA) to select and record the value being used.