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

IndexError in IllusTrip3D #38

Closed
Akyshnik opened this issue Jan 8, 2022 · 1 comment
Closed

IndexError in IllusTrip3D #38

Akyshnik opened this issue Jan 8, 2022 · 1 comment

Comments

@Akyshnik
Copy link

Akyshnik commented Jan 8, 2022

When running a notebook, the program crashes when generating 401st frame, producing an IndexError. Stack trace:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-7-2714cc85de30> in <module>()
    230 pbar = ProgressBar(glob_steps)
    231 for i in range(count):
--> 232   process(i)
    233 
    234 HTML(makevid(tempdir))

<ipython-input-7-2714cc85de30> in process(num)
    127 
    128     # transform frame for motion
--> 129     scale =       m_scale[glob_step]    if animate_them else 1-zoom
    130     trans = tuple(m_shift[glob_step])   if animate_them else [0, shift]
    131     angle =       m_angle[glob_step][0] if animate_them else rotate

IndexError: index 401 is out of bounds for axis 0 with size 401

It crashes on the 401st frame specifically (tested several times).

@eps696
Copy link
Owner

eps696 commented Jan 12, 2022

thanks for reporting
this might happen, when steps was not divisible by frame_step
should be fixed now

@eps696 eps696 closed this as completed Jan 15, 2022
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