dockarea, imageview, metaarray
This commit is contained in:
parent
eaf29b5f07
commit
50df2b2def
@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from pyqtgraph.Qt import QtCore, QtGui
|
||||
from ..Qt import QtCore, QtGui
|
||||
import weakref
|
||||
|
||||
class Container(object):
|
||||
|
@ -1,7 +1,7 @@
|
||||
from pyqtgraph.Qt import QtCore, QtGui
|
||||
from ..Qt import QtCore, QtGui
|
||||
|
||||
from .DockDrop import *
|
||||
from pyqtgraph.widgets.VerticalLabel import VerticalLabel
|
||||
from ..widgets.VerticalLabel import VerticalLabel
|
||||
|
||||
class Dock(QtGui.QWidget, DockDrop):
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from pyqtgraph.Qt import QtCore, QtGui
|
||||
from ..Qt import QtCore, QtGui
|
||||
from .Container import *
|
||||
from .DockDrop import *
|
||||
from .Dock import Dock
|
||||
import pyqtgraph.debug as debug
|
||||
from .. import debug as debug
|
||||
import weakref
|
||||
|
||||
## TODO:
|
||||
|
@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from pyqtgraph.Qt import QtCore, QtGui
|
||||
from ..Qt import QtCore, QtGui
|
||||
|
||||
class DockDrop(object):
|
||||
"""Provides dock-dropping methods"""
|
||||
|
@ -12,29 +12,29 @@ Widget used for displaying 2D or 3D data. Features:
|
||||
- ROI plotting
|
||||
- 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:
|
||||
from .ImageViewTemplate_pyside import *
|
||||
else:
|
||||
from .ImageViewTemplate_pyqt import *
|
||||
|
||||
from pyqtgraph.graphicsItems.ImageItem import *
|
||||
from pyqtgraph.graphicsItems.ROI import *
|
||||
from pyqtgraph.graphicsItems.LinearRegionItem import *
|
||||
from pyqtgraph.graphicsItems.InfiniteLine import *
|
||||
from pyqtgraph.graphicsItems.ViewBox import *
|
||||
from ..graphicsItems.ImageItem import *
|
||||
from ..graphicsItems.ROI import *
|
||||
from ..graphicsItems.LinearRegionItem import *
|
||||
from ..graphicsItems.InfiniteLine import *
|
||||
from ..graphicsItems.ViewBox import *
|
||||
#from widgets import ROI
|
||||
import sys
|
||||
#from numpy import ndarray
|
||||
import pyqtgraph.ptime as ptime
|
||||
from .. import ptime as ptime
|
||||
import numpy as np
|
||||
import pyqtgraph.debug as debug
|
||||
from .. import debug as debug
|
||||
|
||||
from pyqtgraph.SignalProxy import SignalProxy
|
||||
from ..SignalProxy import SignalProxy
|
||||
|
||||
#try:
|
||||
#import pyqtgraph.metaarray as metaarray
|
||||
#from .. import metaarray as metaarray
|
||||
#HAVE_METAARRAY = True
|
||||
#except:
|
||||
#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.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
from pyqtgraph.widgets.GraphicsView import GraphicsView
|
||||
from pyqtgraph.widgets.PlotWidget import PlotWidget
|
||||
from pyqtgraph.widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||
from ..widgets.GraphicsView import GraphicsView
|
||||
from ..widgets.PlotWidget import PlotWidget
|
||||
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.normFrameCheck.setText(QtGui.QApplication.translate("Form", "Frame", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
from pyqtgraph.widgets.GraphicsView import GraphicsView
|
||||
from pyqtgraph.widgets.PlotWidget import PlotWidget
|
||||
from pyqtgraph.widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||
from ..widgets.GraphicsView import GraphicsView
|
||||
from ..widgets.PlotWidget import PlotWidget
|
||||
from ..widgets.HistogramLUTWidget import HistogramLUTWidget
|
||||
|
@ -929,7 +929,7 @@ class MetaArray(object):
|
||||
if proc == False:
|
||||
raise Exception('remote read failed')
|
||||
if proc == None:
|
||||
import pyqtgraph.multiprocess as mp
|
||||
from .. import multiprocess as mp
|
||||
#print "new process"
|
||||
proc = mp.Process(executable='/usr/bin/python')
|
||||
proc.setProxyOptions(deferGetattr=True)
|
||||
@ -1471,4 +1471,4 @@ if __name__ == '__main__':
|
||||
ma2 = MetaArray(file=tf, mmap=True)
|
||||
print("\nArrays are equivalent:", (ma == ma2).all())
|
||||
os.remove(tf)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user