-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
36 lines (23 loc) · 733 Bytes
/
__init__.py
File metadata and controls
36 lines (23 loc) · 733 Bytes
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
from __future__ import absolute_import
import sys
import os
import numpy as np
sys.path.append('/Users/moeckel/Codes/')
# get packages
from .datahandlers.nigelhdf5reader import \
NigelHDF5State
from .datahandlers.testreader import \
TestState
from .datastructures.nbstate import \
NBodyState, NBodySubset
from .datastructures.selectors import \
MassSelection, SphereSelection, BoundSelection
from .visualization.rendering import \
Camera
# supported file types
_outputtypes = [NigelHDF5State, TestState]
def load(infile):
for outputtype in _outputtypes:
if outputtype._is_readable(infile):
return outputtype(infile)
print 'oh no, unsupported output type'