Skip to content

Commit

Permalink
Removed invalid strides from egait Segmentation validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuederle committed Jun 22, 2023
1 parent cdc5a22 commit ef8c906
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) (+ the Migration Guide),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- The egait segmentation validation dataset contained strides that had negative duration.
We now remove them during loading.

## [0.12.0] - 2023-04-27

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_original_segmented_stride_list(
if file_path is None:
stride_borders[sensor] = None
continue
stride_borders[sensor] = (
tmp = (
pd.read_csv(
file_path,
skiprows=8,
Expand All @@ -138,6 +138,10 @@ def get_original_segmented_stride_list(
.rename(columns={"Start": "start", "End": "end"})
.rename_axis(index="s_id")
)
# for some reason some strides have negative durations, which is obviously wrong.
# We will just drop them.
tmp = tmp[tmp["end"] > tmp["start"]]
stride_borders[sensor] = tmp
return stride_borders


Expand Down

0 comments on commit ef8c906

Please sign in to comment.