comparison py/params.py @ 463:f2cca8062128

- 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 1eb68df9f8ab
children bfc3213edee4
comparison
equal deleted inserted replaced
462:a91adc95543d 463:f2cca8062128
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")