PyDVT A Python package for data displaying - PowerPoint PPT Presentation

About This Presentation
Title:

PyDVT A Python package for data displaying

Description:

PyDVT. A Python package for data displaying. Jorg Klora. Gilles Berruyer. Emmanuel Papillon. Nicolas Pascal. Alexandre Gobbo. What's PyDVT? ... – PowerPoint PPT presentation

Number of Views:150
Avg rating:3.0/5.0
Slides: 12
Provided by: alexand87
Category:

less

Transcript and Presenter's Notes

Title: PyDVT A Python package for data displaying


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

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

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

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

5
(No Transcript)
6
(No Transcript)
7
Tkinter x Pyqt Simple Example
  • Tk
  • import Tkinter
  • from SPSData import
  • from ImageView import
  • root Tkinter.Tk ()
  • dataSPSData (RefreshInterval100)
  • view ImageView (root)
  • view.SetSource ( ColormapFilter (None,
    RectSelection(data)))
  • data.SetSource (sys.argv1)
  • data.LoadSource (sys.argv2)
  • view.Show ()
  • root.mainloop ()
  • Qt
  • import qt
  • from SPSData import
  • from ImageView import
  • root qt.Qapplication (sys.argv)
  • dataSPSData (RefreshInterval100)
  • view ImageView (None)
  • view.SetSource ( ColormapFilter (None,
    RectSelection(data)))
  • data.SetSource (sys.argv1)
  • data.LoadSource (sys.argv2)
  • view.Show ()
  • root.setMainWidget (View)
  • root.exec_loop ()

8
(No Transcript)
9
Even Simpler Example (NumPy)
  • 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 ()
  • 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
Write a Comment
User Comments (0)
About PowerShow.com