Python Fundamentals for Creating Experiments
Python Fundamentals for Creating Experiments
This unit teaches you how to make experimental code flexible and reusable by separating configuration from implementation. You will learn to use JSON configuration files to store experimental parameters (trial counts, stimulus positions, timing values) externally, allowing you to reconfigure experiments without modifying code. The unit also covers building command-line interfaces (CLIs) using argparse, which enables running experiments with different settings by passing arguments to your program from the terminal.
Tools
- argparse for command-line interfaces