Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8782947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:42:05+00:00 2026-06-13T20:42:05+00:00

Here is a section (a large section) of my code. http://pastebin.com/KCZNkYNB What i have

  • 0

Here is a section (a large section) of my code. http://pastebin.com/KCZNkYNB

What i have happening, by design, is to iterate through this sequence until the distance that i am calculating is minimized by 1cm. I don’t want to move on to my next epoch until that, which is why i thought i should use .insert for my lists. I need to overwrite the data at the indices it’s currently at.

The error i am getting is:


Traceback (most recent call last):
  File "receiver2.py", line 342, in <module>
    main()
  File "receiver2.py", line 244, in main
    N.insert(k, ( dec.sqrt( (dec(satellite_output.x[k]) - dec(x_veh_coords[epoch]))**2 + (dec(satellite_output.y[k]) - d
ec(y_veh_coords[epoch]))**2 + (dec(satellite_output.z[k]) - dec(z_veh_coords[epoch]))**2 ) ) )
IndexError: list index out of range

This error corresponds with line number 54 in the pastebin file.

What I don’t understand is how an index is out of range when you’re insert.
Full pastebin output: http://pastebin.com/qKhRjn2Q
You will see at the bottom of that output that the last “k” indice was 7, then it reached epoch 1, and incremented to indice 8 but then crapped out with the index out of range. I’m extremely confused as to why that happens. I assure you all the data does exists that is trying to be inserted as if i were to commend out the .insert portion and uncomment the .append, it works fine. Unfortunately, i just realized that append is “hiding” the data i need in order to compute my jacobian correctly.

I hope i’ve given enough information. Thanks for any help you can offer!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:42:06+00:00Added an answer on June 13, 2026 at 8:42 pm

    You have six index operations in the error line (e.g. satellite_output.x[k]); one of those is probably causing the fault, not the insert operation.

    The error message is less helpful than it might be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I follow example from here using section listview http://lalit3686.blogspot.com/2012/05/sectionadapter.html But how can I implement
In the section titled 'Memory Warnings' here http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmNibObjects.html , I don't follow why the
Background (You can skip this section) I have a large amount of data (about
Here is a section of code used by CKEditor on my website: CKEDITOR.config.IPS_BBCODE =
here is the code(exit.s): .section .data, .section .text, .globl _start _start: movl $1, %eax
I have started working with a large code base, and a lot of the
During a code review with a Microsoft employee we came across a large section
I have a code that has a large number of malloc s and device-specific
I have a large array. I have some Java code for identifying indices for
Hoping for some assistance here. I have a large xml file (called xml-file.xml in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.