source: trunk/python/__init__.py@ 2750

Last change on this file since 2750 was 2649, checked in by Kana Sugimoto, 12 years ago

New Development: No

JIRA Issue: Yes (CAS-4141/CSV-1526)

Ready for Test: Yes (* Fix for CASA 4.0 *)

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s):

Description:

For got to commit build and import code of sbseparator module.
Added known issues and warning messages.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1"""
2This is the ATNF Single Dish Analysis package.
3
4"""
5import os
6import sys
7
8# first import!
9from asap.env import *
10# second import!
11from asap.parameters import *
12# third import
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
17
18if is_ipython():
19 from ipysupport import *
20
21# Only use rcParams['verbose'] in standard asap cli mode
22# not in scripts or casapy
23if not is_asap_cli():
24 rcParams['verbose'] = False
25
26setup_env()
27
28# anything which uses matplotlib has to be imported after this!!!
29if rcParams['useplotter']:
30 try:
31 gui = os.environ.has_key('DISPLAY') and rcParams['plotter.gui']
32 if gui:
33 import matplotlib
34 if 'matplotlib.backends' not in matplotlib.sys.modules:
35 matplotlib.use("TkAgg")
36 from asapplotter import asapplotter
37 from matplotlib import pylab
38 xyplotter = pylab
39 plotter = asapplotter(gui)
40 except ImportError:
41 asaplog.push( "Matplotlib not installed. No plotting available")
42 asaplog.post('WARN')
43
44from selector import selector
45from asapmath import *
46from scantable import scantable
47from linecatalog import linecatalog
48from asaplinefind import linefinder
49from simplelinefinder import simplelinefinder
50from interactivemask import interactivemask
51from asapfitter import fitter
52from opacity import skydip
53from opacity import model as opacity_model
54from asapgrid import asapgrid, asapgrid2
55from edgemarker import edgemarker
56#from plotter2 import plotter2
57from sbseparator import sbseparator
58from _asap import srctype
59
60__date__ = '$Date: 2012-09-25 08:36:45 +0000 (Tue, 25 Sep 2012) $'.split()[1]
61__version__ = 'trunk'
62__revision__ = get_revision()
63
64def welcome():
65 return """Welcome to ASAP v%s (%s) - the ATNF Spectral Analysis Package
66
67Please report any bugs via:
68http://svn.atnf.csiro.au/trac/asap/simpleticket
69
70[IMPORTANT: ASAP is 0-based]
71Type commands() to get a list of all available ASAP commands.""" % (__version__,
72 __date__)
Note: See TracBrowser for help on using the repository browser.