haydnw / AirPi

A Raspberry Pi air quality station
27 stars 15 forks source link

Calibration functions with `findval()` in them #33

Open chrisf4lc0n opened 8 years ago

chrisf4lc0n commented 8 years ago

DEBUG:main: ERROR: Exception during output: global name 'findVal' is not defined

chrisf4lc0n commented 8 years ago

That does not do the job I am afraid, I have changed it to findval myself, but still kept getting error...

chrisf4lc0n commented 8 years ago

The problem must lie somewhere in the calibration.py file, but as I said being a complete Python noob does not help, I will however try to work it out...

haydnw commented 8 years ago

It's something to do with line 59 (in 20829d8):

'function': eval("lambda x: " + func),

I'm not sure why Python doesn't recognise the findval() function when evaluating the lambda.

chrisf4lc0n commented 8 years ago

Thanks for pointing me in the right direction... I will work on that.