Skip to content

lynch829/radtrack

 
 

Repository files navigation

RadTrack

RadTrack is an open source framework for working with codes that model particle dynamics and electromagnetic radiation.

Learn how to install easily on your Mac, PC, or Linux box.

Setting Up Development

This script should set up a development environment. It's written in Unix terms, but should be translatable to Windows:

# Assumes running in virtualenv and PyQt4 is installed
pip install numpy
cd
mkdir src
cd src
mkdir biviosoftware
cd biviosoftware
git clone https://github.com/radiasoft/pykern.git
cd pykern
python setup.py develop
cd ../..
mkdir radiasoft
cd radiasoft
git clone https://github.com/radiasoft/radtrack
cd radtrack
python setup.py develop
rm -f radtrack/dcp/sdds*
cp install/fedora/sdds* $(python -c 'from distutils.sysconfig import get_python_lib as x; print x()')

Running tests

You can run the tests with either py.test or python setup.py test in the main directory. To run an individual test, go to the directory and run py.test <file>.

One trick that's useful when debugging is:

py.test --capture=no some_test.py

This will allow you to watch stdout and stderr in real-time as the test runs. Normally, py.test captures output and only writes it if there is a failure.

About

RadTrack is an open source framework for working with codes that model particle dynamics and electromagnetic radiation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Other 0.6%