Install

This section covers the basics of how to download and install DMagic.

Pre-requisites

Install from Anaconda python3.x.

Before using DMagic you need to have valid APS credentials to access the APS scheduling system.

Installing from source

In a prepared virtualenv or as root for system-wide installation clone the DMagic from GitHub repository

$ git clone https://github.com/xray-imaging/DMagic DMagic

Edit the config.py file:

$ gedit DMagic/dmagic/config.py

by entering the correct values for:

USERNAME = '123456'
PASSWORD = 'password'
BEAMLINE = "2-BM-A,B"

then:

$ cd DMagic
$ python setup.py install

Warning

If your python installation is in a location different from #!/usr/bin/env python please edit the first line of the bin/dmagic file to match yours.

EPICS tools

dbLoadRecords("$(TOP)/experimentInfo.db", "P=32idcTXM:")
medm screen

Update

dmagic is constantly updated to include new features. To update your locally installed version:

$ cd dmagic
$ git pull
$ python setup.py install

Dependencies

Install the following package:

$ pip install suds-py3
$ pip install ipdb
$ pip install validate-email
$ pip install pyinotify
$ pip install pyepics

Warning

If requiere edit your .cshrc to set PYEPICS_LIBCA: Example: setenv PYEPICS_LIBCA /APSshare/epics/extensions-base/3.14.12.2-ext1/lib/linux-x86_64/libca.so