Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import psana | |
| from xtcav2.LasingOnCharacterization import * | |
| import numpy as np | |
| from matplotlib import pyplot as plt | |
| data_source = psana.DataSource("exp=amox23616:run=74") | |
| XTCAVRetrieval = LasingOnCharacterization() | |
| for evt in data_source.events(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This rather nasty little script was copied from the CCTBX release and | |
| modified to work. | |
| I swapped the event code fetching to work with psana.SmallData's most | |
| recent EVR format, and also replaced the filter on event code 92 | |
| (which had been employed with the HV pulse generator) with event code | |
| 90, which is the THz laser trigger. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| convert HDF5 files with images into sorted on/off TIFF sets | |
| """ | |
| import sys | |
| import os | |
| import struct | |
| import h5py | |
| import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import psana | |
| import numpy as np | |
| from skimage import measure | |
| from scipy import signal | |
| from ttanalyzer import TTAnalyzer | |
| def relative_time(edge_position): | |
| """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Creates an hdf5 file with the photon histograms and the average image | |
| for one of the epix detectors and for a given number of shots | |
| TJL Change Log 3/14/17 | |
| ---------------------- | |
| 1. Made "good shots" a per-event data | |
| 2. Used smldata.sum() to make sure the summed image is computed using MPI |