[SOLVED]dumb python question

Posted on
Thu May 15, 2014 11:05 pm
kw123 offline
User avatar
Posts: 8335
Joined: May 12, 2013
Location: Dallas, TX

[SOLVED]dumb python question

i have

Code: Select all
indigo.server.log(str(self.eEnergyCostTime)) gives:  [[0, 24], [100, 24], [100, 24]]  as it should be

Code: Select all
indigo.server.log(str(self.eEnergyCostTime[0,0])) gives: <type 'exceptions.TypeError'>: list indices must be integers  should log  "0"


I am stuck on this one for more than 2 hours. no clue what to change, test .. I can put in i where i is 0 same result.

anything obvious?

Karl
Last edited by kw123 on Thu May 15, 2014 11:15 pm, edited 1 time in total.

Posted on
Thu May 15, 2014 11:14 pm
kw123 offline
User avatar
Posts: 8335
Joined: May 12, 2013
Location: Dallas, TX

Re: dumb python question

really dumb.. not [1,1] but [1][1] was looking at it for TOOOO long.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests

cron