ivoflipse / Pawlabeling

Tool for processing and analyzing pressure measurements
Other
18 stars 1 forks source link

The COP seems to be missing its last frame #40

Closed ivoflipse closed 11 years ago

ivoflipse commented 11 years ago

For some reason the COP isn't draw for the very last frame

Frame 47: image Frame 48: image

ivoflipse commented 11 years ago

I simply added some padding to the data being put in (which btw doesn't seem to match up with the max value of the slider), but those values should be checked before using them, the last values might be NaN or 0

ivoflipse commented 11 years ago

I found a 'bug' caused by the refactoring on the Contact class. I had changed the slicing to be more strict, removing some padding. However, I hadn't realized that Python slices up to, not including certain values. Hence, without the padding, your slice is basically too small and you lose some data. As you can see, now frame 48 has a COP, but there's even a frame 49. The slider seems to go to 50, but I think that's because it goes up to len(frames), so there's only data up to len(frames)-1 because we start at zero.

Frame 48: image Frame 49: image