My humble guess: (sure, the full traceback would help A LOT!)
On 09/09/2010 23.52, Todd Ballard wrote:
y=[daily_solar_radiation["MJ"][0]]
for i in xrange(0,275):
y=[daily_solar_radiation["MJ"]][i]+y[i-1] # <--THIS y[i-1] is out of
bounds when i=0 !!!
Hope that helps
Francesco
Nessun vir
On Fri, 10 Sep 2010 07:52:20 am Todd Ballard wrote:
> I am attempting to have a cummalative total of the y values and
> receive a "list index out of range" error message
How unfortunate.
Do you have an actual question to ask, or are you just sharing?
If you are having problems fixing the error,
I am attempting to have a cummalative total of the y values and receive a "list
index out of range" error message
import numpy
import matplotlib.pyplot as plt
import filereader
from filereader import *
My_Path="C:\\Python26\\assignment2\\datadownload.txt"
My_Data_Type=numpy.dtype([("year","