Index: trunk/ippToPsps/jython/ippjytest
===================================================================
--- trunk/ippToPsps/jython/ippjytest	(revision 40270)
+++ trunk/ippToPsps/jython/ippjytest	(revision 40271)
@@ -14,5 +14,5 @@
 set JARDIR = $datadir/jar
 set JYDIR = $datadir/jython
-# set JYDIR = .
+set JYDIR = .
 
 setenv IPPTOPSPS_DATA $datadir/ipptopsps
Index: trunk/ippToPsps/jython/testCode.py
===================================================================
--- trunk/ippToPsps/jython/testCode.py	(revision 40270)
+++ trunk/ippToPsps/jython/testCode.py	(revision 40271)
@@ -46,4 +46,10 @@
     def importIppTables(self):
 
+        if len(sys.argv) != 2:
+            print "USAGE: ippjython testCode.py (filename)"
+            os._exit(2)
+
+        self.filename = sys.argv[1]
+
         try:
             tables = stilts.treads(self.filename)
@@ -54,11 +60,33 @@
         for table in tables:
 
-            print "import smf table " + table.name
+            print "import table " + table.name
 
             # need to generate an index on the IPP_IDET column
             # table = stilts.tpipe(table, cmd='addcol table_index $0')
-            table = stilts.tpipe(table, cmd='explodeall')
+            try:
+                table = stilts.tpipe(table, cmd='explodeall')
+            except Exception,e:
+                # print the error, wait a few secs then try again
+                print str(e)
+                return False
 
-            print "read smf table " + table.name
+            try:
+                myColumns = table.columns()
+            except Exception,e:
+                # print the error, wait a few secs then try again
+                print str(e)
+                return False
+
+            print "got myColumns"
+
+            try:
+                for column in myColumns:
+                    print "got column " + column.name
+            except Exception,e:
+                # print the error, wait a few secs then try again
+                print str(e)
+                return False
+
+            print "read table " + table.name
 
             # drop any previous tables before import
@@ -69,13 +97,13 @@
 
             # IPP FITS files are littered with infinities, so remove these
-            print "Removing Infinity values from all columns"
-            table = stilts.tpipe(table, cmd='replaceval -Infinity null *')
-            table = stilts.tpipe(table, cmd='replaceval Infinity null *')
-
-            try:
-                table.write(self.url + '#' + table.name)
-            except:
-                print "Problem writing table '" + table.name + "' to the database"
-                os._exit(4)
+            ## print "Removing Infinity values from all columns"
+            ## table = stilts.tpipe(table, cmd='replaceval -Infinity null *')
+            ## table = stilts.tpipe(table, cmd='replaceval Infinity null *')
+            ## 
+            ## try:
+            ##     table.write(self.url + '#' + table.name)
+            ## except:
+            ##     print "Problem writing table '" + table.name + "' to the database"
+            ##     os._exit(4)
 
         return True
@@ -103,4 +131,5 @@
             print "alt word1"
         
+        self.importIppTables()
 
         # self.connectMysql(argv)
