Hello, everyone,
I have a Python code that reads the 5040 numbers from a TXT file to perform a simulation, as shown in Figure 1 . Next, the code creates a B (s) function, which is used in the Figure 2 commands (I skipped a part of the code between Figure 1 and Figure 2). However, when I click on Run module
, the Python Shell displays the error message IndexError: index 5324 is out of bounds for axis 0 with size 5040
, which is best seen in Figure 3 .
I'm a beginner with Python and although I've encountered similar errors with the Numpy Index, no workaround worked for my code.
Can anyone help me? Thanks in advance, Marcos Miotti
Figure 1 - Reading TXT file and B (s) function.
Figure2-UseoffunctionB(s).
Figure3-ErrormessageinPythonShell.