Presentation is loading. Please wait.

Presentation is loading. Please wait.

PyDVT A Python package for data displaying Jorg Klora Gilles Berruyer Emmanuel Papillon Nicolas Pascal Alexandre Gobbo.

Similar presentations


Presentation on theme: "PyDVT A Python package for data displaying Jorg Klora Gilles Berruyer Emmanuel Papillon Nicolas Pascal Alexandre Gobbo."— Presentation transcript:

1 PyDVT A Python package for data displaying Jorg Klora Gilles Berruyer Emmanuel Papillon Nicolas Pascal Alexandre Gobbo

2 Whats PyDVT? n Package containing Python base classes for data visualization applications.

3 Objective n Easy remake of existing ESRF graphical tools in Python. n Easy creation of simple graphic applications in beamlines (on-line acquisition) n Standarize graphical application development n Attempt to share model with Scisoft (off-line analysis).

4 Requirements n Tk or Qt? GUI toolkit independent. n Generic data abstraction layer. n Independent and extensible modules. n Performance. n Multi-Platform. n Easy of use. n Simple and complex cases.

5 ** EDF FILE DATA Info PAGE Info Array SPEC SHARED MEMORY DATA JPG FILE DATA SPEC FILE DATA … DATA 1* DATA SELECTION … SELECTION MULTIPLE SELECTION RECT SELECTION LINE SELECTION * * TOOLS COLORMAP EDITOR EXTENDED VIEWS BINDING OBJECTS AUXILIARY DIALOGS … VIEW SELECTION LINE HLINE VLINE RECT … GUI BINDING` TK Binding QT Binding RELATION INHERITANCE IMPORTATION 1 * FILTER FIT FUNCTION COLORMAP VIEW GRAPH IMAGE CONTOUR MESH …

6

7 Tkinter x Pyqt Simple Example n Tk import Tkinter from SPSData import * from ImageView import * root = Tkinter.Tk () data=SPSData (RefreshInterval=100) view = ImageView (root) view.SetSource ( ColormapFilter (None, RectSelection(data))) data.SetSource (sys.argv[1]) data.LoadSource (sys.argv[2]) view.Show () root.mainloop () n Qt import qt from SPSData import * from ImageView import * root = qt.Qapplication (sys.argv) data=SPSData (RefreshInterval=100) view = ImageView (None) view.SetSource ( ColormapFilter (None, RectSelection(data))) data.SetSource (sys.argv[1]) data.LoadSource (sys.argv[2]) view.Show () root.setMainWidget (View) root.exec_loop ()

8 NUMPY ARRAY VIEW SPECIFIC NUMPY FILTER 1* * * VIEW SELECTION LINE HLINE VLINE RECT … GUI BINDING` TK Binding QT Binding VIEW GRAPH IMAGE HISTO 3D VIEW … 1*

9 Even Simpler Example (NumPy) n Tk import Tkinter from ImageView import * from Numeric import * root = Tkinter.Tk () view = ImageView (root) arr = Numeric.ones ((500,500)) view.SetData(Image(arr)) view.Show () root.mainloop () n Qt import qt from ImageView import * from Numeric import * root = qt.Qapplication (sys.argv) view = ImageView (None) arr = Numeric.ones ((500,500)) view.SetData(Image(arr)) view.Show () root.setMainWidget (View) root.exec_loop ()

10 Examples...

11 More Information... www.esrf.fr/computing/bliss/python/PyDVT


Download ppt "PyDVT A Python package for data displaying Jorg Klora Gilles Berruyer Emmanuel Papillon Nicolas Pascal Alexandre Gobbo."

Similar presentations


Ads by Google