source: trunk/python/__init__.py@ 1849

Last change on this file since 1849 was 1835, checked in by Malte Marquarding, 14 years ago

remove reader and make parameters import third in line

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
RevLine 
[100]1"""
2This is the ATNF Single Dish Analysis package.
3
4"""
[1824]5import os
6import sys
[226]7
[1824]8# first import!
9from asap.env import *
10# second import!
[1835]11from asap.parameters import *
12# third import
[1824]13from asap.logging import *
14from asap.utils import *
15# explicitly import 'hidden' functions
16from asap.utils import _n_bools, _is_sequence_or_number, _to_list
[1472]17
[1080]18
[1824]19if is_ipython():
20 from ipysupport import *
[226]21
[1824]22# use rc parameter to enable/disable logging
23asaplog.enable(rcParams['verbose'])
[226]24
[1824]25setup_env()
[226]26
[1824]27# anything which uses matplotlib has to be imported after this!!!
[928]28if rcParams['useplotter']:
[1295]29 try:
[1423]30 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui']
31 if gui:
[1422]32 import matplotlib
[1824]33 if 'matplotlib.backends' not in matplotlib.sys.modules:
34 matplotlib.use("TkAgg")
35 from asapplotter import asapplotter
[1691]36 from matplotlib import pylab
[1422]37 xyplotter = pylab
[1423]38 plotter = asapplotter(gui)
[1295]39 except ImportError:
[1819]40 asaplog.post( "Matplotlib not installed. No plotting available")
41 print_log('WARN')
[285]42
[1824]43from selector import selector
44from asapmath import *
45from scantable import scantable
46from linecatalog import linecatalog
47from asaplinefind import linefinder
48from simplelinefinder import simplelinefinder
49from interactivemask import interactivemask
50from asapfitter import fitter
51from opacity import skydip
52from opacity import model as opacity_model
53
[574]54__date__ = '$Date: 2010-08-03 05:08:49 +0000 (Tue, 03 Aug 2010) $'.split()[1]
[1824]55__version__ = 'trunk'
56__revision__ = get_revision()
[100]57
[706]58def welcome():
59 return """Welcome to ASAP v%s (%s) - the ATNF Spectral Analysis Package
[100]60
[1035]61Please report any bugs via:
[1378]62http://svn.atnf.csiro.au/trac/asap/simpleticket
[100]63
[378]64[IMPORTANT: ASAP is 0-based]
[1824]65Type commands() to get a list of all available ASAP commands.""" % (__version__,
66 __date__)
Note: See TracBrowser for help on using the repository browser.