Surface NMR processing and inversion GUI
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import sys
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4. import plotyaml
  5. __author__ = "M. Andy Kass"
  6. __version__ = "$Revision 0.1"
  7. __date__ = "$Date: 2017-05-25"
  8. class USGSPlots:
  9. def getData(self,fname,chan):
  10. self.channels = []
  11. for part in chan.split(','):
  12. if ':' in part:
  13. a,b = part.split(':')
  14. a,b = int(a), int(b)
  15. self.channels.extend(range(a,b))
  16. else:
  17. a = int(part)
  18. self.channels.append(a)
  19. #print self.channels
  20. self.data = []
  21. for c in self.channels:
  22. nm = "Chan. " + str(c)
  23. self.data.append(plotyaml.loadAkvoData(fname,nm))
  24. return 0
  25. def plotSingleDecay(self,pm,chan=1):
  26. return 42
  27. def plotAllDecays(self,chan=1):
  28. return 42
  29. def plotAverageFID(self,chan=1):
  30. return 42
  31. def plotSpectrum(self,chan=1):
  32. return 42