-
Notifications
You must be signed in to change notification settings - Fork 151
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
ZeroDivisionError: float modulo #32
Comments
Do you use the same version for all required Python package? |
Sorry for the late replying. I was using the exact same pkgs you mentioned before. Is there any update about those pkgs? Best, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Akaraspt. Thanks for sharing your script.
I got this error while running the following script.
python prepare_physionet.py --data_dir data --output_dir data/eeg_fpz_cz --select_ch 'EEG Fpz-Cz'.
Error info:
Traceback (most recent call last):
File "", line 1, in
File "/home/irving/anaconda3/envs/py27/lib/python2.7/site-packages/numpy/lib/shape_base.py", line 498, in split
if N % sections:
ZeroDivisionError: float modulo
As you saw, the error was self-understanding. After debugging, I have traced the reason for this error is happening from line 168 of prepare_physionet.py, which the variable n_trims was assigned to 0. I was understanding the previous code's function is finding useful data with labels. However, I am still confused about this error. Do you have any idea the reason for this part? I am really appreciative of it.
Best wishes,
Irving
The text was updated successfully, but these errors were encountered: