Skip to content

slac-lcls/ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,614 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ami Build Status

The LCLS-II online graphical analysis monitoring package.

Developer Setup

Code Formatting

This project uses automated code formatting:

  • Black for Python formatting (120 char line length)
  • isort for import organization
  • pre-commit hooks for automation

Quick Start

Install pre-commit hooks after cloning:

pip install --user pre-commit
pre-commit install

Code will be formatted automatically on commit.

Manual Formatting

Format all code:

black --line-length=120 .
isort --profile=black --line-length=120 .

Check formatting:

black --check --line-length=120 .
isort --check --profile=black --line-length=120 .
flake8

Install Dev Tools

pip install --user -e ".[dev]"

Note: Use --user flag when working in shared LCLS conda environments (e.g., ps_*).

Examples

If you use the setup.py included to set this up you should now have two console scripts available on your path: ami-worker and ami-manager. Several example configuration files are included in the examples directory.

To run ami with three workers run the following in lcls2/ami (for either psanasource or random source): ami-worker -n 3 random://examples/worker.json ami-worker -n 3 psana://examples/psana.json

Then start the manager: ami-manager

Then, start a GUI (client): ami-client

You should see an interactive QT window. There is also a convenience launcher that when you want to run all parts of ami on a single node: ami-local -n 3 random://examples/worker.json

To load a graph, add this flag to ami-local: -l examples/basic.ami

To use psana a working release need to be added to the python path

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors