KeyError: 9 with AWS Tutorial

21 views
Skip to first unread message

Tyler Matukonis

unread,
Jun 8, 2026, 11:08:40 AM (5 days ago) Jun 8
to inmap-users

Hello,


I’m a new InMAP user who is working on a project that involves emissions shapefiles that have 9 rows of data, each representing a census division (New England, Middle Atlantic, etc.). In following the 2022 tutorial, I ran into a "KeyError: 9" message when running the line, for i in range(len(index)):. When I changed the for loop to only run 9 times, the program was able to output files. However, I was wondering if this change influences the way InMAP runs on the backend other than only loading in 9 rows of data.


Additionally, I noticed that the output shapefiles contain 52411 geographic cells. Is there a way to group cells into larger regions, such as counties?


Thank you,

Tyler


Reply all
Reply to author
Forward
0 new messages