You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 33 Next »

Draft, in work.

Unable to render {include} The included page could not be found.

Once you've cloned the LCLS-II PSDM repository and built the executables therein, you can generate sample Xtc data files and use iPython and psana to inspect the structures therein.

Setting Up

Switch to PSDM conda Environment

Return to the PSDM conda environment, if necessary.

# At the top of the PSDM lcls2 git repo
user@host> bash
user@host bash> source ./setup_env.sh 

Generating a Sample Data File

 

Create a Basic psana Data Import Script

We need a simple script to execute in the iPython session.

from psana import DataSource

ds = DataSource('test.xtc')

for evt in ds.events():
	pass
  • No labels