Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The main objective of this session is to introduce and to explain the new Python interface for accessing LCLS data. This software framework is known as the "Interactive psana". The first idea of implementing such tool was suggested around 1.5 years ago at the joint PCDS/SRD meeting (look for Interactive Psana). Though its underlying machinery is largely based on the batch version of (deprecated) psana modules the interface to the data is simpler, more intuitive, and it requires less code to be written by a user in order to get to that CSPad image or that EPICS PV. The new framework won't work for everyone, specifically for those users who have either heavily invested into the modular code of the batch framework, or who need the performance of modules written in C++. Still our intent is to demonstrate the power of the new approach and to encourage using the tool where appropriate.

...

(warning) Users of pyana and myana, attention: The pyana and myana frameworks will be phased out at some point. As our understanding of what kind of analysis framework works better for the users and for ourselves as developers grew evolved, we realized that we needed to develop a tool which would have an easier interface to the data, a better internal architecture and be easier to maintain and extend for new data types. Hence we developed (deprecated) psana modules framework which has a number of advantages:

...

  • Make sure you can run X11 applications. Most examples of this tutorial will do a simple visualization. You can pass the -X or -Y argument to ssh to make sure you can forward the screens to your local machine. Log onto any machine of the interactive pools psananeh or psanafeh, eg:

    Code Block
    ssh -Y psananehpsana
    
  • Make sure you source (just once) one of the following scripts. When using the bash shell:

    Code Block
    . /reg/g/psdm/etc/ana_env.sh
    

    Or, when using the csh shell family:

    Code Block
    source /reg/g/psdm/etc/ana_env.csh
    

    Note that the default shell for most LCLS users is bash.

    Run (just once) the following command which will set up a proper analysis environment for the latest analysis release:

    Code Blocksit_setup ana-current

     This gives you access to the latest psana software release (there are other commands to use an older, or local release)

     

At this point you are ready to go. To test that the your environment is set up correctly try running psana without any parameters. If your environment is properly set you should see something like this:

...