You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
The text was updated successfully, but these errors were encountered:
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")
The text was updated successfully, but these errors were encountered: