comparison py/params.py @ 166:5d5424acfed0

- use the fridge temperature for control too, keep it in a 6deg band - ignore params beginning with _
author Matt Johnston <matt@ucc.asn.au>
date Mon, 18 Feb 2013 23:31:32 +0800
parents d73077e8cd67
children bfc3213edee4
comparison
equal deleted inserted replaced
163:bf2a17873ba1 166:5d5424acfed0
44 u = json.load(f) 44 u = json.load(f)
45 except Exception, e: 45 except Exception, e:
46 raise self.Error(e) 46 raise self.Error(e)
47 47
48 for k in u: 48 for k in u:
49 if k.startswith('_'):
50 continue
49 if k not in self: 51 if k not in self:
50 raise self.Error("Unknown parameter %s=%s in file '%s'" % (str(k), str(u[k]), getattr(f, 'name', '???'))) 52 raise self.Error("Unknown parameter %s=%s in file '%s'" % (str(k), str(u[k]), getattr(f, 'name', '???')))
51 self.update(u) 53 self.update(u)
52 54
53 L("Loaded parameters") 55 L("Loaded parameters")