__init__.py 888 Bytes
Newer Older
1
2
3
4
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
Daniel Brown's avatar
Daniel Brown committed
5

Daniel Brown's avatar
Daniel Brown committed
6
__version__ = "1.0.8"
7
8
9

# This flag is used to switch on the gui features in pkat at import time
USE_GUI = False
10
HAS_OPTIVIS = False
11
HAS_GRAPHVIZ = False
12

13
import imp
14

15
16
17
18
19
try:
	imp.find_module('optivis')
	HAS_OPTIVIS = True
except ImportError:
	HAS_OPTIVIS = False
20

21
22
23
24
25
26
27
try:
    imp.find_module('pygraphviz')
    HAS_GRAPHVIZ = True
except ImportError:
    HAS_GRAPHVIZ = False


28
29
30
import pykat.exceptions as pkex

NoGUIException = pkex.BasePyKatException("No PyQt4 module was found so cannot open a GUI")
Daniel Brown's avatar
Daniel Brown committed
31

32
33
34
35
import pykat.finesse as finesse
import pykat.components as components
import pykat.detectors as detectors
import pykat.commands as commands
36

37
from pykat.optics.gaussian_beams import beam_param
38

39
from pykat.plotting import init_pykat_plotting
40
41