On 5/27/11 11:06 AM, Talla wrote: > I am using python24 and Numeric under windows XP and I am trying to > create *.agr file from *.dbs file, I followed the instructions very > carefully and every time I am getting the following message: > Traceback (most recent call last): > File "AbinitBandStructuremaker.py", line 1274, in ? > data.fermienergy = max(maxlist) > ValueError: max() arg is an empty sequence > > Nothing wrong in the .dbs file
This is really a question for the author of AbinitBandStructuremaker.py. If there is no one familiar with that code tha can help you'll need to debug it yourself. That error means that in this case, "maxlist" is an empty list, so tring to find teh maximum value in it is not possible. It also looks like that is the built-in python max(0, not the Numeric one, so this isn't really a numpy-related question anyway. without more context, we can't even begin to figure out what's wrong. Good luck, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion