-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in accelerometer_example.py #20
Comments
Thanks for pointing out the issue. It is possible that during commit 16a2bfa I broke the function to move the window. I will need to check, as the transform class previously expected a window_overlap parameter, but I think the name of the parameter was misleading. I think I will change the parameter to stride, and adjust the rest of the code accordingly. I still need to reproduce the error, but what I mentioned needs to be sorted out. |
Thanks for your reply. By the way, the array out of bound is caught in an exception. |
I have run the example and when the warning is captured this is the output message
|
I just realised that the example code uses the exception to stop the sliding window. This is therfore intentionally for the correct functioning of the transformation. This needs clearly to be addressed in Issue #21 Meanwhile, it would be advisable to check if the sliding window is out of bounds, instead of relying in a raised exception. |
In accelerometer_example.py when using the provided example dataset:
bHealth/examples/accelerometer_example.py
Lines 51 to 58 in 858df1a
I get an error of out of bound access. The error might occur in transform.slide(), where "windowed_raw" is first assigned the value and then its "current_position" goes forward:
bHealth/bhealth/transforms.py
Lines 402 to 411 in 858df1a
The text was updated successfully, but these errors were encountered: