diff 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
line wrap: on
line diff
--- a/py/params.py	Sat Jan 12 21:54:55 2013 +0800
+++ b/py/params.py	Mon Feb 18 23:31:32 2013 +0800
@@ -46,6 +46,8 @@
             raise self.Error(e)
 
         for k in u:
+            if k.startswith('_'):
+                continue
             if k not in self:
                 raise self.Error("Unknown parameter %s=%s in file '%s'" % (str(k), str(u[k]), getattr(f, 'name', '???')))
         self.update(u)