Changeset - 0cf00fffd921
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 15 years ago 2010-06-20 05:04:09
drewp@bigasterisk.com
2 files changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -30,8 +30,6 @@ from rdflib.Graph import Graph
 
import rdflib
 
import logging
 
log = logging.getLogger()
 
logging.basicConfig(format="%(asctime)s %(levelname)-5s %(name)s %(filename)s:%(lineno)d: %(message)s")
 
log.setLevel(logging.DEBUG)
 

	
 
import run_local
 
from light9 import Submaster, dmxclient, networking, showconfig, prof, Patch
 
@@ -396,6 +394,7 @@ def createSubtermGraph(song, subterms):
 

	
 
def add_subterms_for_song(graph, song, curveset, subterms, master):
 
    for st in graph.objects(song, L9['subterm']):
 
        log.info("song %s has subterm %s", song, st)
 
        try:
 
            add_one_subterm(graph, graph.value(st, L9['sub']), curveset,
 
                            subterms, master, graph.value(st, L9['expression']))
 
@@ -469,6 +468,10 @@ def main():
 
                      help="ignore music and smooth_music curve files")
 
    opts, args = parser.parse_args()
 

	
 
    logging.basicConfig(format="%(asctime)s %(levelname)-5s %(name)s %(filename)s:%(lineno)d: %(message)s")
 
    log.setLevel(logging.INFO)
 

	
 

	
 
    try:
 
        song = URIRef(args[0])
 
    except IndexError:
light9/Submaster.py
Show inline comments
 
@@ -56,7 +56,7 @@ class Submaster:
 
            self.reload(quiet=True, graph=graph)
 
        if not self.temporary:
 
            dispatcher.connect(self.reload, 'reload all subs')
 
        log.info("%s initial levels %s", self.name, self.levels)
 
        log.debug("%s initial levels %s", self.name, self.levels)
 
        
 
    def reload(self, quiet=False, graph=None):
 
        if self.temporary:
0 comments (0 inline, 0 general)