Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2005 Joint Institute for VLBI in Europe 2 # 3 # This program is free software; you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation; either version 2 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 13 # You should have received a copy of the GNU General Public License 14 # along with this program; if not, write to the Free Software 15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 16 17 """ 18 19 This module provides instances to dispatch function calls locally, 20 without doing any RPC. 21 22 """ 23 24 # Global AIPS defaults. 25 import AIPS 26 27 # The AIPSTask module should always be available. 28 import Proxy.AIPSTask 29 AIPSTask = Proxy.AIPSTask.AIPSTask() 30 AIPSMessageLog = Proxy.AIPSTask.AIPSMessageLog() 31 32 # The same goes for the ObitTask module. 33 import Proxy.ObitTask 34 ObitTask = Proxy.ObitTask.ObitTask() 35 36 # The AIPSData module depends on Obit. Since Obit might not be 37 # available, leave out the AIPSUVData and AIPSImage instances if we 38 # fail to load the module. 39 try: 40 import Proxy.AIPSData 41 except Exception, exception: 42 if AIPS.debuglog: 43 print >>AIPS.debuglog, exception 44 pass 45 else: 46 # Print an empty line to make sure the message stands out. 47 print 48 print "Warning: can't import AIPSData;", 49 print "access to local AIPS data won't work" 50 pass 51 else: 52 AIPSImage = Proxy.AIPSData.AIPSImage() 53 AIPSUVData = Proxy.AIPSData.AIPSUVData() 54 AIPSCat = Proxy.AIPSData.AIPSCat() 55
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Nov 28 17:13:10 2008 | http://epydoc.sourceforge.net |