-
Notifications
You must be signed in to change notification settings - Fork 20
/
__init__.py
62 lines (46 loc) · 2.24 KB
/
__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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/python
"""Set up Modelica_ simulations and load, analyze, and plot the results.
This module provides direct access to the most important functions and classes
from its submodules. These are:
- Basic supporting classes and functions: :meth:`base.add_arrows`,
:meth:`base.add_hlines`, :meth:`base.add_vlines`, :meth:`base.animate`,
:class:`base.ArrowLine`, :meth:`base.closeall`, :meth:`base.figure`,
:meth:`base.load_csv`, :meth:`base.save`, :meth:`base.saveall`, :meth:`base.setup_subplots`
- To manage simulation experiments: :class:`exps.Experiment`, :mod:`exps.doe`,
:meth:`exps.gen_experiments`, :class:`exps.ParamDict`,
:meth:`exps.read_params`, :meth:`exps.run_models`, :meth:`exps.write_params`,
:meth:`exps.write_script`
- To handle multiple files at once: :meth:`multi.multiload`,
:meth:`multi.multiplot`
- For simulation results: :class:`simres.SimRes`
- For linearization results: :class:`linres.LinRes`
- To label numbers and quantities: :meth:`texunit.label_number`,
:meth:`texunit.label_quantity`, :meth:`texunit.unit2tex`
.. _Modelica: http://www.modelica.org/
"""
__author__ = "Kevin Davies"
__email__ = "kdavies4@gmail.com"
__copyright__ = "Copyright 2012-2013, Georgia Tech Research Corporation"
__license__ = "BSD-compatible (see LICENSE.txt)"
__version__ = "0.8.1"
import sys
# Check the Python version.
major, minor1, minor2, s, tmp = sys.version_info
if not (major == 2 and minor1 == 7):
raise ImportError('Currently, modelicares requires Python 2.7.')
# TODO: Add support for Python 3.x once wx supports it.
# All functions and classes
#__all__ = ['base', 'exps', 'linres', 'multi', 'simres', 'texunit']
# Essential functions and classes
#
# These will be available directly from modelicares; others must be loaded from
# their submodules.
from base import (add_arrows, add_hlines, add_vlines, animate, ArrowLine,
closeall, figure, load_csv, save, saveall, setup_subplots)
from exps import (Experiment, gen_experiments, ParamDict, read_params,
run_models, write_params, write_script)
import exps.doe as doe
from linres import LinRes
from multi import multiload, multiplot, multibode, multinyquist
from simres import SimRes
from texunit import label_number, label_quantity, unit2tex