Millisecond Forums

Summary files for web script not being save to sub-directory

https://forums.millisecond.com/Topic20637.aspx

By lakeside - 2/3/2017

For most of the scripts I have hosted, the summary file is stored in a sub-directory called 'summarydata'. However, I have one script (http://scripts.millisecond.com/ahrb/dpdt/dpdt.iqx) that insists on mixing the data and summary files in the same /dpdt directory. Any thoughts on how to separate these going forward? It will make data processing easier.
By Dave - 2/3/2017

lakeside - Friday, February 3, 2017
For most of the scripts I have hosted, the summary file is stored in a sub-directory called 'summarydata'. However, I have one script (http://scripts.millisecond.com/ahrb/dpdt/dpdt.iqx) that insists on mixing the data and summary files in the same /dpdt directory. Any thoughts on how to separate these going forward? It will make data processing easier.

Try explicitly specifying different names for the raw vs summary data files in the script's <data> and <summarydata> elements respectively. E.g.

<data>

/columns = [date, time, script.subjectid, script.groupid, script.elapsedtime, computer.availablememory,
    blocknum, blockcode, trialnum, values.trialcount, trialcode,
    latency, response, text.question.currentitem, values.questiontype,
    text.subjectquestion.currentitem, text.subjectanswer.currentitem,
    values.var, values.std, values.t, values.p,
    ... ]
/ separatefiles = true
/ file = "dpdt_raw.iqdat"
</data>

<summarydata>

/ columns = [    script.startdate, script.starttime, script.subjectid, script.groupid, script.filename, script.elapsedtime,
                computer.availablememory, computer.memory, computer.os, computer.cpuspeed, computer.timerresolution,
                values.completed, expressions.nips,
                ...]
/ separatefiles = true
/ file = "dpdt_summary.iqdat"
</summarydata>