Quality Checking

soccon.quality_check.download_and_check(args)

Runs download_beiwe_data and quality_check for all subject ids provided

soccon.quality_check.download_and_check_cli()
soccon.quality_check.download_beiwe_data(args)

Downloads data from Beiwe server into specified directory

Parameters:

args (argparse.Namespace) – Args. See download_data_cli for details.

Returns:
  • bool – True if data has been downloaded, false if not

  • Path – Path to folder into which data has been downloaded

soccon.quality_check.download_data_cli()
soccon.quality_check.get_shared_args_dl_funcs()
soccon.quality_check.get_shared_args_qc_and_dl()
soccon.quality_check.quality_check(data_dir, subject_id, survey_key_path, skip_gps_stats)

Runs a quality check on the data in data_dir on subject_id and outputs the results to data_dir/subject_id_processed/

Parameters:
  • data_dir (str) – Path to data directory

  • subject_id (str) – Beiwe subject ID

  • survey_key_path (str) – Path to survey key which is used to apply use names to survey ids

  • skip_gps_stats (bool) – Flag to skip processing GPS data

soccon.quality_check.quality_check_cli()
soccon.quality_check.validate_date(d)