onnela-lab / forest

Forest is a library for analyzing smartphone-based high-throughput digital phenotyping data
https://forest.beiwe.org
BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

ValueError in mtrand.pyx when running Jasmine #233

Closed biblicabeebli closed 9 months ago

biblicabeebli commented 9 months ago

Currently the top failed task on https://studies.beiwe.org/studies/924/forest/tasks (task id is 18a45323-27a3-4d04-839d-e680323ff797)

commit hash should be fcc49a74057f98b1b26079a0257b3e9d7c27a98f - its a commit on my beiwe-taskrunner branch.

ValueError: a must be greater than 0 unless no samples are taken
  File "services/celery_forest.py", line 165, in run_forest_task
    run_forest(task)
  File "services/celery_forest.py", line 216, in run_forest
    TREE_TO_FOREST_FUNCTION[forest_task.forest_tree](**params_dict)
  File "forest/jasmine/traj2stats.py", line 1693, in gps_stats_main
    imp_table = impute_gps(
  File "forest/jasmine/mobmat2traj.py", line 1162, in impute_gps
    imp_table, start, counter = forward_impute(
  File "forest/jasmine/mobmat2traj.py", line 669, in forward_impute
    flight_index = np.random.choice(flight_table.shape[0], p=normalize_w)
  File "mtrand.pyx", line 909, in numpy.random.mtrand.RandomState.choice