changeset 73:c74fe7efabc1

Submaster analysis to help with gel pickage
author dmcc
date Thu, 11 Jul 2002 15:27:17 +0000
parents 609cb9ae53b1
children 2dfae9ed1cda
files light8/sub_analyzer.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/light8/sub_analyzer.py	Thu Jul 11 15:26:28 2002 +0000
+++ b/light8/sub_analyzer.py	Thu Jul 11 15:27:17 2002 +0000
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 from Subs import *
 from Patch import *
 from types import TupleType
@@ -9,6 +8,10 @@
 import Patch
 Patch.reload_data(0)
 
+def resolve_name(channelname):
+    "Insure that we're talking about the primary name of the light"
+    return Patch.get_channel_name(Patch.get_dmx_channel(channelname))
+
 subusage = {}
 
 # colors = 'ROGBVndcihs'
@@ -58,8 +61,7 @@
 
 sub_to_scene = {}
 
-# blacklist is a list of *prefixes* to light names that won't be shown
-blacklist = 'god upfill red blue cyc oran sidefill'.split()
+blacklist = 'god upfill1 upfill2 upfill3 upfill4 red1 red2 red3 red4 blue1 blue2 blue3 blue4 cycleft cycright sidefill1 sidefill2'.split()
 blacklist.extend(['side l','side r'])
 
 for subname, levdict in subs.items():
@@ -83,9 +85,7 @@
     return [(b,a) for a,b in l]
 
 def format_usage(ch, usage):
-    if max([ch.startswith(pre) for pre in blacklist]):
-        return
-    
+    if ch in blacklist: return
     usage=twist(usage)
     usage.sort()
 #    usage.reverse()