Changeset - ccdfdc8183ad
bin/inputquneo
Show inline comments
 
@@ -26,7 +26,7 @@ curves = {
 
}
 

	
 

	
 
class WatchMidi(object):
 
class WatchMidi:
 

	
 
    def __init__(self, graph):
 
        self.graph = graph
bin/paintserver
Show inline comments
 
@@ -58,7 +58,7 @@ class BestMatches(PrettyErrorHandler, cy
 
            self.write(json.dumps({'settings': outSettings.asList()}))
 

	
 

	
 
class App(object):
 
class App:
 

	
 
    def __init__(self, show, session):
 
        self.show = show
light9/Effects.py
Show inline comments
 
@@ -18,7 +18,7 @@ def register(f):
 

	
 

	
 
@register
 
class Strip(object):
 
class Strip:
 
    """list of r,g,b tuples for sending to an LED strip"""
 
    which = 'L'  # LR means both. W is the wide one
 
    pixels = []
light9/ascoltami/main.py
Show inline comments
 
@@ -22,7 +22,7 @@ from light9.ascoltami.webapp import make
 
reactor = cast(IReactorCore, reactor)
 

	
 

	
 
class App(object):
 
class App:
 

	
 
    def __init__(self, graph, show):
 
        self.graph = graph
light9/ascoltami/musictime_client.py
Show inline comments
 
@@ -11,7 +11,7 @@ from light9 import networking
 
log = logging.getLogger()
 

	
 

	
 
class MusicTime(object):
 
class MusicTime:
 
    """
 
    fetch times from ascoltami in a background thread; return times
 
    upon request, adjusted to be more precise with the system clock
light9/ascoltami/player.py
Show inline comments
 
@@ -11,7 +11,7 @@ log = logging.getLogger()
 

	
 

	
 

	
 
class Player(object):
 
class Player:
 

	
 
    def __init__(self, autoStopOffset=4, onEOS=None):
 
        """autoStopOffset is the number of seconds before the end of
light9/ascoltami/playlist.py
Show inline comments
 
@@ -7,7 +7,7 @@ class NoSuchSong(ValueError):
 
    after the last song in the playlist)."""
 

	
 

	
 
class Playlist(object):
 
class Playlist:
 

	
 
    def __init__(self, graph, playlistUri):
 
        self.graph = graph
light9/collector/collector_client.py
Show inline comments
 
@@ -11,7 +11,7 @@ log = logging.getLogger('coll_client')
 
_zmqClient = None
 

	
 

	
 
class TwistedZmqClient(object):
 
class TwistedZmqClient:
 

	
 
    def __init__(self, service):
 
        zf = ZmqFactory()
light9/collector/device.py
Show inline comments
 
@@ -10,7 +10,7 @@ from light9.newtypes import VT, DeviceCl
 
log = logging.getLogger('device')
 

	
 

	
 
class Device(object):
 
class Device:
 
    pass
 

	
 

	
light9/collector/output.py
Show inline comments
 
@@ -13,7 +13,7 @@ log = logging.getLogger('output')
 
logAllDmx = logging.getLogger('output.allDmx')
 

	
 

	
 
class Output(object):
 
class Output:
 
    """
 
    send a binary buffer of values to some output device. Call update
 
    as often as you want- the result will be sent as soon as possible,
light9/collector/weblisteners.py
Show inline comments
 
@@ -20,7 +20,7 @@ class UiListener(Protocol):
 
        ...
 

	
 

	
 
class WebListeners(object):
 
class WebListeners:
 

	
 
    def __init__(self) -> None:
 
        self.clients: List[Tuple[UiListener, Dict[DeviceUri, Dict[OutputAttr, OutputValue]]]] = []
light9/effect/effecteval.py
Show inline comments
 
@@ -64,7 +64,7 @@ def _8bit(f):
 
    return clamp255(int(f * 255))
 

	
 

	
 
class EffectEval(object):
 
class EffectEval:
 
    """
 
    runs one effect's code to turn effect attr settings into output
 
    device settings. No state; suitable for reload().
light9/effect/sequencer/note.py
Show inline comments
 
@@ -20,7 +20,7 @@ def pyType(n):
 
    return ret
 

	
 

	
 
class Note(object):
 
class Note:
 

	
 
    def __init__(self, graph: SyncedGraph, uri: NoteUri, effectevalModule, simpleOutputs, timed=True):
 
        g = self.graph = graph
light9/effect/sequencer/sequencer.py
Show inline comments
 
@@ -32,7 +32,7 @@ class StateUpdate(All):
 
    pass
 

	
 

	
 
class CodeWatcher(object):
 
class CodeWatcher:
 

	
 
    def __init__(self, onChange):
 
        self.onChange = onChange
 
@@ -54,7 +54,7 @@ class CodeWatcher(object):
 
        reactor.callLater(.1, go) # type: ignore
 

	
 

	
 
class Sequencer(object):
 
class Sequencer:
 
    """Notes from the graph + current song playback -> sendToCollector"""
 
    def __init__(self,
 
                 graph: SyncedGraph,
light9/effect/settings.py
Show inline comments
 
@@ -36,7 +36,7 @@ def getVal(graph, subj):
 
    return ret
 

	
 

	
 
class _Settings(object):
 
class _Settings:
 
    """
 
    default values are 0 or '#000000'. Internal rep must not store zeros or some
 
    comparisons will break.
light9/effect/simple_outputs.py
Show inline comments
 
@@ -5,7 +5,7 @@ from typing import Dict, List, Tuple, An
 
from rdflib import URIRef
 

	
 

	
 
class SimpleOutputs(object):
 
class SimpleOutputs:
 
    """
 
    Watches graph for effects that are just fading output attrs. 
 
    Call `values` to get (dev,attr):value settings.
light9/effecteval/effect.py
Show inline comments
 
@@ -15,7 +15,7 @@ class CouldNotConvert(TypeError):
 
    pass
 

	
 

	
 
class CodeLine(object):
 
class CodeLine:
 
    """code string is immutable"""
 

	
 
    def __init__(self, graph, code):
 
@@ -102,7 +102,7 @@ class CodeLine(object):
 
        return out
 

	
 

	
 
class EffectNode(object):
 
class EffectNode:
 

	
 
    def __init__(self, graph, uri):
 
        self.graph, self.uri = graph, uri
light9/effecteval/effectloop.py
Show inline comments
 
@@ -19,7 +19,7 @@ from light9.metrics import metrics
 
log = logging.getLogger('effectloop')
 

	
 

	
 
class EffectLoop(object):
 
class EffectLoop:
 
    """maintains a collection of the current EffectNodes, gets time from
 
    music player, sends dmx"""
 

	
 
@@ -193,7 +193,7 @@ class EffectLoop(object):
 
Z = numpy.zeros((50, 3), dtype=numpy.float16)
 

	
 

	
 
class ControlBoard(object):
 
class ControlBoard:
 

	
 
    def __init__(
 
            self,
light9/io/udmx.py
Show inline comments
 
@@ -22,7 +22,7 @@ or https://github.com/markusb/uDMX-linux
 
cmd_SetChannelRange = 0x0002
 

	
 

	
 
class Udmx(object):
 
class Udmx:
 

	
 
    def __init__(self, bus):
 
        self.dev = None
light9/metrics.py
Show inline comments
 
@@ -101,7 +101,7 @@ class PmfStat(Stat):
 

	
 
metrics consumer side can do this with the changing counts:
 

	
 
class RecentFps(object):
 
class RecentFps:
 
  def __init__(self, window=20):
 
    self.window = window
 
    self.recentTimes = []
light9/namespaces.py
Show inline comments
 
@@ -3,7 +3,7 @@ from typing import Dict
 

	
 

	
 
# Namespace was showing up in profiles
 
class FastNs(object):
 
class FastNs:
 

	
 
    def __init__(self, base):
 
        self.ns = Namespace(base)
light9/networking.py
Show inline comments
 
@@ -6,7 +6,7 @@ from .showconfig import getGraph, showUr
 
from .namespaces import L9
 

	
 

	
 
class ServiceAddress(object):
 
class ServiceAddress:
 

	
 
    def __init__(self, service):
 
        self.service = service
light9/observable.py
Show inline comments
 
@@ -2,11 +2,11 @@ import logging
 
log = logging.getLogger('observable')
 

	
 

	
 
class _NoNewVal(object):
 
class _NoNewVal:
 
    pass
 

	
 

	
 
class Observable(object):
 
class Observable:
 
    """
 
    like knockout's observable. Hopefully this can be replaced by a
 
    better python one
0 comments (0 inline, 0 general)