AsianPlayer's picture
|
download
raw
2.33 kB
# Paths changed in the staged scripts
The seven scripts are copied verbatim (logic unchanged) through the release text scrub; the only edits are the hard-coded
absolute input/output paths below, rewritten so that they resolve when the scripts are run from the root of this
`questionnaire/` folder (`python scripts/<name>.py`). The 'old' column shows the path after the release scrub (the local
user directory is already masked as `/home/USER`).
| script | old | new | occurrences |
|---|---|---|---|
| `make_user_study_fig_paper.py` | `out="/home/USER/project/baton_paper/ICLR/figures/user_study_bars.pdf"` | `out="figures/user_study_bars.pdf"` | 1 |
| `make_user_study_fig_n14.py` | `out="/home/USER/project/baton_paper/ICLR/figures/user_study_bars_n14.pdf"` | `out="figures/user_study_bars_n14.pdf"` | 1 |
| `make_user_study_bars.py` | `R="/home/USER/cwm3/studies/user_study_v1/results/questionnaire_v1"` | `R="results"` | 1 |
| `make_user_study_bars.py` | `from results/questionnaire_v1/endpoints.csv` | `from results/endpoints.csv` | 1 |
| `make_user_study_bars.py` | `--out DIR/user_study_bars` | `--out figures/user_study_bars` | 1 |
## Unchanged
* `/usr/share/fonts/truetype/msttcorefonts/Times*.ttf` (system font directory used by the three figure scripts; not a project path).
* `analysis_questionnaire_v1.py`, `parse_questionnaire_pdfs.py`, `paired_endpoints.py`, `analysis.py` take every input/output path
from the command line (`--questionnaire`, `--sessions`, `--out`, `--pdf-dir`, ...) and contain no absolute paths; nothing was changed.
## Example invocations (from the folder root)
```
python scripts/analysis_questionnaire_v1.py --questionnaire results/questionnaire.csv --sessions results/sessions.csv --out results
python scripts/make_user_study_fig_paper.py # -> figures/user_study_bars.pdf/.png
python scripts/make_user_study_fig_n14.py # -> figures/user_study_bars_n14.pdf/.png
python scripts/make_user_study_bars.py --out figures/user_study_bars # -> figures/user_study_bars{,_bare}.pdf/.png (teaser layout)
```
`results/sessions.csv` is not shipped (see README.md); it is one row per participant and drive: `participant_id,session_index,condition_code,condition`
with `1,X,C` and `2,Y,S` for every participant, and is also written by `scripts/parse_questionnaire_pdfs.py`.

Xet Storage Details

Size:
2.33 kB
·
Xet hash:
373ce8b304dfb6e99d88e9759226f61c9ed7809bc988c552bb2ba386c427248c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.