-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
46 lines (40 loc) · 1002 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
This module implements a visualization program, in the style of Daniel Price's
SPLASH, to view RAMSES data files.
"""
__author__ = "Andrew McLeod"
__license__ = "Public Domain"
__version__ = "0.002"
__code_name = "SPLOSH"
__significant_figures = 6
import numpy as np
import matplotlib as mpl
import pymses
import pymses_wrapper as wrapper_functions
from interactive import run
backend_list = []
try:
from qt5_backend import BackendQT5
backend_list.append(BackendQT5())
except ImportError:
try:
from qt4_backend import BackendQT4
backend_list.append(BackendQT4())
except ImportError:
pass
try:
from png_backend import BackendPNG
backend_list.append(BackendPNG())
except ImportError:
pass
try:
from pdf_backend import BackendPDF
backend_list.append(BackendPDF())
except ImportError:
pass
try:
from txt_backend import BackendTXT
backend_list.append(BackendTXT())
except ImportError:
pass
print(__code_name + ' loaded')