Skip to content

ZeroDivisionError: float modulo #32

@Irving-ren

Description

@Irving-ren

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions