Skip to content
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

Error when trying to EXTRACT AND EMBED FEATURES #81

Open
runqiL opened this issue Sep 19, 2023 · 0 comments
Open

Error when trying to EXTRACT AND EMBED FEATURES #81

runqiL opened this issue Sep 19, 2023 · 0 comments

Comments

@runqiL
Copy link

runqiL commented Sep 19, 2023

Hi!

I'm running b-soid on my DLC outputs. I followed the instructions through every step. But when trying to extract features, I encountered this error, could you help me figure out what went wrong?

Thank you so much!

ValueError: window must be non-negative
Traceback:
File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.dict)
File "/Users/RunqiL/B-SOID/bsoid_app.py", line 46, in
extractor.main()
File "/Users/RunqiL/B-SOID/bsoid_app/extract_features.py", line 192, in main
self.compute()
File "/Users/RunqiL/B-SOID/bsoid_app/extract_features.py", line 84, in compute
disp_boxcar.append(boxcar_center(disp_r[:, l], window))
File "/Users/RunqiL/B-SOID/bsoid_app/bsoid_utilities/likelihoodprocessing.py", line 16, in boxcar_center
moving_avg = np.array(a1.rolling(window=n, min_periods=1, center=True).mean())
File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/generic.py", line 10543, in rolling
return Rolling(
File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 169, in init
self.validate()
File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 1965, in validate
raise ValueError("window must be non-negative")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant