dockarea, imageview, metaarray
This commit is contained in:
parent
eaf29b5f07
commit
50df2b2def
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from pyqtgraph.Qt import QtCore, QtGui
|
from ..Qt import QtCore, QtGui
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
class Container(object):
|
class Container(object):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from pyqtgraph.Qt import QtCore, QtGui
|
from ..Qt import QtCore, QtGui
|
||||||
|
|
||||||
from .DockDrop import *
|
from .DockDrop import *
|
||||||
from pyqtgraph.widgets.VerticalLabel import VerticalLabel
|
from ..widgets.VerticalLabel import VerticalLabel
|
||||||
|
|
||||||
class Dock(QtGui.QWidget, DockDrop):
|
class Dock(QtGui.QWidget, DockDrop):
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from pyqtgraph.Qt import QtCore, QtGui
|
from ..Qt import QtCore, QtGui
|
||||||
from .Container import *
|
from .Container import *
|
||||||
from .DockDrop import *
|
from .DockDrop import *
|
||||||
from .Dock import Dock
|
from .Dock import Dock
|
||||||
import pyqtgraph.debug as debug
|
from .. import debug as debug
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from pyqtgraph.Qt import QtCore, QtGui
|
from ..Qt import QtCore, QtGui
|
||||||
|
|
||||||
class DockDrop(object):
|
class DockDrop(object):
|
||||||
"""Provides dock-dropping methods"""
|
"""Provides dock-dropping methods"""
|
||||||
|
@ -12,29 +12,29 @@ Widget used for displaying 2D or 3D data. Features:
|
|||||||
- ROI plotting
|
- ROI plotting
|
||||||
- Image normalization through a variety of methods
|
- Image normalization through a variety of methods
|
||||||
"""
|
"""
|
||||||
from pyqtgraph.Qt import QtCore, QtGui, USE_PYSIDE
|
from ..Qt import QtCore, QtGui, USE_PYSIDE
|
||||||
|
|
||||||
if USE_PYSIDE:
|
if USE_PYSIDE:
|
||||||
from .ImageViewTemplate_pyside import *
|
from .ImageViewTemplate_pyside import *
|
||||||
else:
|
else:
|
||||||
from .ImageViewTemplate_pyqt import *
|
from .ImageViewTemplate_pyqt import *
|
||||||
|
|
||||||
from pyqtgraph.graphicsItems.ImageItem import *
|
from ..graphicsItems.ImageItem import *
|
||||||
from pyqtgraph.graphicsItems.ROI import *
|
from ..graphicsItems.ROI import *
|
||||||
from pyqtgraph.graphicsItems.LinearRegionItem import *
|
from ..graphicsItems.LinearRegionItem import *
|
||||||
from pyqtgraph.graphicsItems.InfiniteLine import *
|
from ..graphicsItems.InfiniteLine import *
|
||||||
from pyqtgraph.graphicsItems.ViewBox import *
|
from ..graphicsItems.ViewBox import *
|
||||||
#from widgets import ROI
|
#from widgets import ROI
|
||||||
import sys
|
import sys
|
||||||
#from numpy import ndarray
|
#from numpy import ndarray
|
||||||
import pyqtgraph.ptime as ptime
|
from .. import ptime as ptime
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pyqtgraph.debug as debug
|
from .. import debug as debug
|
||||||
|
|
||||||
from pyqtgraph.SignalProxy import SignalProxy
|
from ..SignalProxy import SignalProxy
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
#import pyqtgraph.metaarray as metaarray
|
#from .. import metaarray as metaarray
|
||||||
#HAVE_METAARRAY = True
|
#HAVE_METAARRAY = True
|
||||||
#except:
|
#except:
|
||||||
#HAVE_METAARRAY = False
|
#HAVE_METAARRAY = False
|
||||||
|
@ -155,6 +155,6 @@ class Ui_Form(object):
|
|||||||
self.normTimeRangeCheck.setText(QtGui.QApplication.translate("Form", "Time range", None, QtGui.QApplication.UnicodeUTF8))
|
self.normTimeRangeCheck.setText(QtGui.QApplication.translate("Form", "Time range", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
self.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
|
||||||
from pyqtgraph.widgets.GraphicsView import GraphicsView
|
from ..widgets.GraphicsView import GraphicsView
|
||||||
from pyqtgraph.widgets.PlotWidget import PlotWidget
|
from ..widgets.PlotWidget import PlotWidget
|
||||||
from pyqtgraph.widgets.HistogramLUTWidget import HistogramLUTWidget
|
from ..widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||||
|
@ -150,6 +150,6 @@ class Ui_Form(object):
|
|||||||
self.normTimeRangeCheck.setText(QtGui.QApplication.translate("Form", "Time range", None, QtGui.QApplication.UnicodeUTF8))
|
self.normTimeRangeCheck.setText(QtGui.QApplication.translate("Form", "Time range", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
self.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
|
||||||
from pyqtgraph.widgets.GraphicsView import GraphicsView
|
from ..widgets.GraphicsView import GraphicsView
|
||||||
from pyqtgraph.widgets.PlotWidget import PlotWidget
|
from ..widgets.PlotWidget import PlotWidget
|
||||||
from pyqtgraph.widgets.HistogramLUTWidget import HistogramLUTWidget
|
from ..widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||||
|
@ -929,7 +929,7 @@ class MetaArray(object):
|
|||||||
if proc == False:
|
if proc == False:
|
||||||
raise Exception('remote read failed')
|
raise Exception('remote read failed')
|
||||||
if proc == None:
|
if proc == None:
|
||||||
import pyqtgraph.multiprocess as mp
|
from .. import multiprocess as mp
|
||||||
#print "new process"
|
#print "new process"
|
||||||
proc = mp.Process(executable='/usr/bin/python')
|
proc = mp.Process(executable='/usr/bin/python')
|
||||||
proc.setProxyOptions(deferGetattr=True)
|
proc.setProxyOptions(deferGetattr=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user