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

ZeroDivisionError: float modulo #32

Open
Irving-ren opened this issue Jun 8, 2020 · 2 comments
Open

ZeroDivisionError: float modulo #32

Irving-ren opened this issue Jun 8, 2020 · 2 comments

Comments

@Irving-ren
Copy link

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

@akaraspt
Copy link
Owner

Do you use the same version for all required Python package?

@Irving-ren
Copy link
Author

Sorry for the late replying. I was using the exact same pkgs you mentioned before. Is there any update about those pkgs?

Best,
Irving

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

2 participants