Guest User

Untitled

a guest
Jul 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import psana
  2. from xtcav2.LasingOnCharacterization import *
  3. import numpy as np
  4.  
  5. from matplotlib import pyplot as plt
  6.  
  7. data_source = psana.DataSource("exp=amox23616:run=74")
  8. XTCAVRetrieval = LasingOnCharacterization()
  9.  
  10. for evt in data_source.events():
  11. try:
  12. XTCAVRetrieval.processEvent(evt)
  13. roi = XTCAVRetrieval.processedXTCAVImage()
  14. print(XTCAVRetrieval.physicalUnits())
  15. plt.imshow(roi[0])
  16. plt.show()
  17. except:
  18. print "issue finding pulse"
Add Comment
Please, Sign In to add comment