Experiment scripts:
  - participant_info.py: Script for collection participant details such as age and sex.
  - Direction_detection.py: Script for running a flow-parsing experiment. Participant indicate whether a target is moving inwards or outwards. The target is on a background of moving dots which simulate forwards or backwards motion.  The target is onscreen for various durations.  A staircase proceeedure identified the target speed where participants are equally likely to make an nwards or outwards decision.
  - Target_detection.py: Script for running a visual integration experiment.  Participants identify which of four locations a target appeared in.  The target is composed of two spatially separated probes with various interstimulus-intervals (ISIs).  The target is on a background of moving dots which simulate forwards or backwards motion.  A staircase proceedure identifies the luminance where participants can detect the target with 75% accuracy.
  - Missing_target_detection.py: Script for running a visual integration experiment.  Participants identify which of four locations did not contain a target (e.g., the atarget is presented to three of the four locations.  Each target is composed of two spatially separated probes with various interstimulus-intervals (ISIs).  The targets are on a background of moving dots which simulate forwards or backwards motion.  A staircase proceedure identifies the luminance where participants can detect the targets with 75% accuracy.

Packages for the experiment scripts: 
  - PsychoPy_tools.py: Contains a dictionary of screen dimentions and a function for returning the pixel size (diagonally) for the monitor being used.  Additional monitors can be added if collection more data on a new monitor.

Analysis script:
 - run_analysis.py: Enter the path to the directory containing the data for each experiment to run the analysis.  This script calls the appropriate function and settings to analyse data from each experiment, get means and make plots.

Packages for the analysis process:
  - Used for direct_detect_analysis_pipe_Dec23 (e.g., for direction_detection.py analysis)
  - - flow_parsing_psignifit_tools.py: Contains functions relating to fitting psychometric functions and obtaining thresholds using psignifit.  These functions transform the data into the correct shape and format for psignifit, and put the ouput of psignifit into .csv files with the various conditions in the appropriate rows and columns.
  - flow_parsing_psignifit_analysis.py: Contains tools for extracting data from the raw experiment output; getting mean thresholds from participant data; getting experiment level mean thresholds.

  - Used for all analysis:
  - - Analysis_pipes_Dec23.py: Contains two functions, one for analysing data from the direction_detection.py experiment and the other for analysing data from either the target_detection.py or missing_target_detection.py experiment.
  - - psignifit_tools.py: Contains functions relating to fitting psychometric functions and obtaining thresholds using psignifit.  These functions transform the data into the correct shape and format for psignifit, and put the ouput of psignifit into .csv files with the various conditions in the appropriate rows and columns.  
  - - rad_flow_psignifit_analysis.py: Contains tools for extracting data from the raw experiment output; correcting lumiance values on the OLED monitor; getting mean thresholds from participant data; getting trimmed mean thresholds on participant data; getting experiment level mean thresholds; and plotting results.  Also contains tools for reshaping data and formatting plots.  
