I’ve encountered an issue with the “sleep_dist_th_per_second parameter” in analysis.py. Although the default value is set to 5 at the beginning of the code, during runtime self.sleep_dist_th_per_second becomes 16. Furthermore, changing the value in def init (sleep_dist_th_per_second=5) does not affect the final sleep status results.
I add "print(f"[DEBUG] sleep_dist_th = {self.sleep_dist_th_per_second}")" right before "np.array(all_dist_per_s) < sleep_dist_th", and the value is 16. But I cannot find where the value is set to 16. 16 leads to longer sleep time in the final result.
I changed the "sleep_dist_th = self.sleep_dist_th_per_second" before "all_sleep_status_per_s = np.array(all_dist_per_s) < sleep_dist_th" to "sleep_dist_th = 5" and it works.
I’ve encountered an issue with the “sleep_dist_th_per_second parameter” in analysis.py. Although the default value is set to 5 at the beginning of the code, during runtime self.sleep_dist_th_per_second becomes 16. Furthermore, changing the value in def init (sleep_dist_th_per_second=5) does not affect the final sleep status results.
I add "print(f"[DEBUG] sleep_dist_th = {self.sleep_dist_th_per_second}")" right before "np.array(all_dist_per_s) < sleep_dist_th", and the value is 16. But I cannot find where the value is set to 16. 16 leads to longer sleep time in the final result.
I changed the "sleep_dist_th = self.sleep_dist_th_per_second" before "all_sleep_status_per_s = np.array(all_dist_per_s) < sleep_dist_th" to "sleep_dist_th = 5" and it works.