Script evalClockDrift.py

28 views
Skip to first unread message

Heder Dorneles

unread,
Mar 4, 2016, 1:24:10 PM3/4/16
to FlockLab users
Hi,

I've tried to run the evalClockDrift.py (from Tutorial 6) script, but I have got the following error:

#temperatures 
Traceback (most recent call last):
  File "./evalClockDrift.py", line 154, in <module>
    main(sys.argv[1:])
  File "./evalClockDrift.py", line 90, in main
    tserial=filter(lambda x:x[0]>=t0+i*win and x[0]<t0+(i+1)*win, serial)
UnboundLocalError: local variable 'serial' referenced before assignment

Looking at the code I saw that some filename had changed ("serialreader.csv" to "serial.csv"). Even changing there was an error related to a extra field, when removed the script ran.

file diff:
41c41
<                       if member.name[-16:] == "serialreader.csv":
---
>                       if member.name[-10:] == "serial.csv":
62c62,65
<                                       pck = val[3]
---
>                                       #pck = val[3]
>                                       pck = val[4]
>                                       # add more one val.pop
>                                       val.pop()

The result is attached, could someone tell me if the output is ok? 
out.txt

Roman Lim

unread,
Mar 7, 2016, 3:22:10 AM3/7/16
to flockla...@googlegroups.com
Hi Heder

Thanks for reporting this bug. I updated the FlockLab tutorial accordingly.
The number look ok.

Cheers
Roman
> --
> You received this message because you are subscribed to the Google Groups "FlockLab users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to flocklab-user...@googlegroups.com <mailto:flocklab-user...@googlegroups.com>.
> To post to this group, send email to flockla...@googlegroups.com <mailto:flockla...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/flocklab-users.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages