This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import numpy | |
from taurus.external.qt import QtGui | |
from taurus.qt.qtgui.application import TaurusApplication | |
from taurus.qt.qtgui.base import TaurusBaseComponent | |
from pyqtgraph import PlotDataItem | |
class TaurusPlotDataItem(PlotDataItem, TaurusBaseComponent): | |
"""A taurus-ified PlotDataItem""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#find trunks | |
find . -type d -iname trunk > /tmp/find-trunk.txt & | |
#filter paths | |
cat /tmp/find-trunk.txt | sed 's/\.\(.*\)\/trunk/\1/' > /tmp/paths.tst | |
# to make script | |
# sed 's/\.\(.*\)\/trunk/grep -v \1 \| \\/' > /tmp/filter.sh | |
# edit /tmp/filter.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import h5py | |
import numpy | |
import time | |
import sys | |
from multiprocessing import Process | |
FNAME = 'foo.h5' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt4 import Qt | |
class Signaller(Qt.QObject): | |
signal = Qt.pyqtSignal() | |
class Base(object): | |
"""Base is not a QObject but provides a pyqtSignal signal member via | |
a Signaller hidden behind a property""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SignalMethodWrapper(object): | |
"""Object that can act simultaneously as a pyqtBoundSignal and as a callable | |
method. | |
It optionally allows to log deprecation messages whe used as a signal | |
or as a method or both | |
""" | |
def __init__(self, pyqtboundsignal, method, alt_sig=None, alt_meth=None, | |
name='<wrapper>'): |
NewerOlder