Skip to content
forked from hibtc/madgui

Qt based GUI for accelerator simulations using MAD-X

License

Notifications You must be signed in to change notification settings

DavidSagan/madqt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MadQt

MadQt is a python GUI for interactive accelerator simulations using MAD-X or Bmad/tao.

Dependencies

Needs to be built manually:

These are likely to be available in your system repositories:

These can easily be installed via PyPI (pip install ...) if unavailable in your repositories:

Installation

After installing the dependencies, open a terminal in the project folder and type:

python setup.py install

Usage

Now, you should be able to start MadQt with the command:

madqt

or:

python -m madqt

Qt

MadQt can be run with PyQt4 or PyQt5. To select either backend, set the environment variable PYQT_API:

export PYQT_API=pyqt        # require PyQt4
export PYQT_API=pyqt5,pyqt  # prefer PyQt5, fallback to PyQt4

Development guidelines

Coding:

Naming:

  • Stick to names_with_underscores for methods and variable names as mandated by PEP8 (I admit that the code base is currently very inconsistent in this regard)
  • class names are in CamelCase
  • only PyQt class method overrides and their parameters shall be written in lowerCamelCase

Version control:

Commits should be reversible, independent units if possible. Use descriptive titles and also add an explaining commit message unless the modification is trivial. See also: A Note About Git Commit Messages.

About

Qt based GUI for accelerator simulations using MAD-X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%