Versions Compared

Key

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

...

Now examplenv will have the correct environment variables when activated with the command source activate examplenv and deactivate with source deactivate. And packages may be added, removed, upgraded, downgraded, etc. from this conda environment like usual. For information on this, follow link given at the beginning of this section.

Useful Commands

Below are several useful Conda commands that may have been stated above:

  • To update a package, simply use conda update <package name> and this includes psana conda. So if psana conda needs to been updated, just do conda update -y psana-conda. The -y tag removes the "Proceed ([y]/n)?" question that is asked before installing/updating or whatever is being done.
  • Packages can be similarly be installed and uninstalled replacing updatewith install or uninstall above.
  • If using multiple packages, one can activate an environment with source activate <env name> and deactivate an environment with source deactivate <env name>.
  • More commands can be found here.

Example

It's important to test whether or not the above steps actually worked. To do this, you can use any code that imports experiment data with psana. Below is the sample code from the Event Iteration page from the Building Blocks section, here. If following the multiple environments steps, make sure to activate the environment with the command source activate examplenv.

...