Changeset - ed27b45526b1
[Not reviewed]
default
0 2 0
Drew Perttula - 9 years ago 2016-06-01 10:55:41
drewp@bigasterisk.com
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/collector/device.py
Show inline comments
 
@@ -42,7 +42,7 @@ def resolve(deviceType, deviceAttr, valu
 
    if deviceAttr == L9['color']:
 
        rgbs = [hex_to_rgb(v) for v in values]
 
        return rgb_to_hex([max(*component) for component in zip(*rgbs)])
 
        
 
    # angles should perhaps use average; gobo choice use the most-open one
 
    return max(values)
 
    
 
def toOutputAttrs(deviceType, deviceAttrSettings):
light9/rdfdb/graphfile.py
Show inline comments
 
@@ -130,6 +130,8 @@ class GraphFile(object):
 
            print e
 
            traceback.print_exc()
 
            log.error("%s syntax error", self.path)
 
            # todo: likely bug- if a file has this error upon first
 
            # read, I think we don't retry it right.
 
            return
 
        except IOError as e:
 
            log.error("%s rereading %s: %r", self.path, self.uri, e)
0 comments (0 inline, 0 general)