add MAVelocity.py

This commit is contained in:
2017-01-03 10:20:29 +01:00
parent c4f9813681
commit 85f20ef491
5 changed files with 290 additions and 7 deletions

15
python/PBMotionAnalyzer.py Normal file → Executable file
View File

@@ -1,9 +1,18 @@
#!/usr/bin/env python
# *-----------------------------------------------------------------------*
# | |
# | Copyright (c) 2016 by Paul Scherrer Institute (http://www.psi.ch) |
# | |
# | Author Thierry Zamofing (thierry.zamofing@psi.ch) |
# *-----------------------------------------------------------------------*
import os,sys
import wx
import wx.py
import numpy as np
from MAxyPlot import *
from MAError import *
from MAVelocity import *
#from hdfTree import *
#from hdfGrid import *
#from hdfAttrib import *
@@ -187,7 +196,8 @@ class MAMainFrame(wx.Frame):
frame.Show(True)
def OnShowVelocity(self, event):
pass
frame=MAVelocityFrame(self,self.doc)
frame.Show(True)
def OnShell(self, event):
frame = wx.Frame(self, -1, "wxPyShell",size=wx.Size(800, 500))
@@ -229,7 +239,8 @@ rec
def OnUpdate(self,msg,usrData):
#this is the model-view-control update function
print self,msg,usrData
#print self,msg,usrData
pass
@staticmethod
def OnSetTime(usrData, value, msg):