mobilise-d / mobgap

The Mobilise-D algorithm toolbox - Implemented in Python
https://mobgap.readthedocs.io
Apache License 2.0
32 stars 4 forks source link

Some small gsd_evaluation issues; #157

Closed AKuederle closed 4 months ago

AKuederle commented 5 months ago

1: SettingWithCopy Warning:

mobgap/gait_sequences/evaluation.py:581: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  detected["range_index"] = range(len(detected))

2: categorize_intervals can not handle the case, where no gs were detected (or no reference exists) (or both)