diff --git a/utils/jasmine.py b/utils/jasmine.py index de6f73e3..63958c72 100644 --- a/utils/jasmine.py +++ b/utils/jasmine.py @@ -7,7 +7,7 @@ import argparse import os -from forest.jasmine.traj2stats import gps_stats_main +from forest.jasmine.traj2stats import Frequency, gps_stats_main parser = argparse.ArgumentParser() parser.add_argument("raw_data_path", type=str, @@ -15,27 +15,15 @@ parser.add_argument("summary_data_path", type=str, help="path to the output folder") parser.add_argument( - "quality_threshold", type=float, default=0.4, + "--quality_threshold", type=float, default=0.05, help="a quality threshold for data worth reporting, value between 0 and 1" ) args = parser.parse_args() summary_data_path = os.path.join(args.summary_data_path, "gps") -# time zone where the study took place -# (assumes that all participants were always in this time zone) -tz_str = "America/New_York" -option = "daily" # generate summary metrics "hourly", "daily" or "both" -save_traj = False # Save imputed trajectories? -time_start = None -time_end = None -beiwe_id = None -parameters = None -all_memory_dict = None -all_BV_set = None -quality_threshold = args.quality_threshold - os.makedirs(summary_data_path, exist_ok=True) -gps_stats_main(args.raw_data_path, summary_data_path, tz_str, option, - save_traj, time_start, time_end, beiwe_id, parameters, - all_memory_dict, all_BV_set, - quality_threshold=quality_threshold) + +gps_stats_main(study_folder=args.raw_data_path, + output_folder=summary_data_path, tz_str="Etc/GMT-1", + frequency=Frequency.DAILY, save_traj=False, + quality_threshold=args.quality_threshold)