Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 32021)
+++ trunk/ippToPsps/jython/batch.py	(revision 32033)
@@ -49,6 +49,5 @@
         self.doc = doc
         self.fits = fits
-        if self.fits is not None:
-            self.header = self.fits.getPrimaryHeader()
+        if self.fits: self.header = self.fits.getPrimaryHeader()
 
         # set up logging
@@ -92,5 +91,5 @@
         # create a new batch
         self.batchID = self.ippToPspsDb.createNewBatch( 
-                self.getPspsBatchType(), 
+                self.batchType, 
                 self.id,
                 survey,
@@ -100,5 +99,5 @@
         # get local storage location from config
         self.batchName = "B%08d" % self.batchID
-        self.subDir = self.doc.find("localOutPath").text + "/" + self.getPspsBatchType() + "/" + dvoName
+        self.subDir = self.doc.find("localOutPath").text + "/" + self.batchType + "/" + dvoName
         self.localOutPath = self.subDir + "/" + self.batchName 
         if not os.path.exists(self.localOutPath): os.makedirs(self.localOutPath)
@@ -111,18 +110,6 @@
         if not self.useFullTables: self.scratchDb.createDvoTables()
 
-        self.everythingOK = True
-
-    '''
-    Destructor
-    '''
-    def __del__(self):
-
-        self.logger.debug("Batch destructor")
-
-    '''
-    Prints metadata to the log
-    '''
-    def printMe(self):
-
+        # dump stuff to the log
+        self.logger.infoTitle("New " + self.batchType + " batch")
         self.logger.infoPair("Batch name", self.batchName)
         self.logger.infoPair("Survey", self.survey)
@@ -130,5 +117,19 @@
         self.logger.infoPair("DVO location", self.dvoLocation)
         self.logger.infoPair("Use full DVO tables?", "%d" % self.useFullTables)
+
+        if self.fits:
+            self.logger.infoPair("Input FITS file", self.fits.getOriginalPath())
+            self.logger.infoPair("Input FITS primary header", "%s cards found" % self.fits.getPrimaryHeaderCardCount())
+
         self.logger.infoPair("Output path", self.localOutPath)
+
+        self.everythingOK = True
+
+    '''
+    Destructor
+    '''
+    def __del__(self):
+
+        self.logger.debug("Batch destructor")
 
     '''
@@ -169,5 +170,5 @@
         # batch information
         root.attrib['name'] = self.batchName
-        root.attrib['type'] = self.getPspsBatchType()
+        root.attrib['type'] = self.batchType
         root.attrib['timestamp'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") 
         if self.survey != "":
@@ -253,14 +254,4 @@
             self.logger.error("Don't know this survey: '" + self.survey + "'")
             return "NA"
-
-    '''
-    Gets PSPS friendly batch type TODO only use PSPS batch names, P2, ST etc
-    '''
-    def getPspsBatchType(self):
-
-        if self.batchType == "init": return "IN"
-        elif self.batchType == "detection": return "P2"
-        elif self.batchType == "stack": return "ST"
-        else: self.logger.error("Don't know this batch type: " + self.survey)
 
     '''
@@ -465,5 +456,4 @@
             return
 
-        self.printMe()
         self.createEmptyPspsTables()
         self.importIppTables()
@@ -475,5 +465,4 @@
 
         self.logger.infoPair("Batch......", "complete")
-        self.logger.infoSeparator()
-
-
+
+
