Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 32032)
+++ 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()
-
-
+
+
Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 32032)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 32033)
@@ -43,5 +43,5 @@
                ippToPspsDb,
                camID,
-               "detection", 
+               "P2", 
                gpc1Db.getCameraStageSmf(camID),
                #"MD04") # TODO
@@ -107,15 +107,9 @@
        self.ippToPspsDb.insertDetectionMeta(self.batchID, self.expID, self.filter)
 
-    '''
-    Prints metadata to the log
-    '''
-    def printMe(self):
-
-        super(DetectionBatch, self).printMe()
-
-        self.logger.infoPair("Cam ID", "%d" % self.id)
-        self.logger.infoPair("Exp ID", "%d" % self.expID)
-        self.logger.infoPair("Exp name", "%s" % self.expName)
-        self.logger.infoPair("Distribution group", "%s" % self.distGroup)
+       # dump stuff to log
+       self.logger.infoPair("Cam ID", "%d" % self.id)
+       self.logger.infoPair("Exp ID", "%d" % self.expID)
+       self.logger.infoPair("Exp name", "%s" % self.expName)
+       self.logger.infoPair("Distribution group", "%s" % self.distGroup)
 
     '''
Index: trunk/ippToPsps/jython/initbatch.py
===================================================================
--- trunk/ippToPsps/jython/initbatch.py	(revision 32032)
+++ trunk/ippToPsps/jython/initbatch.py	(revision 32033)
@@ -37,5 +37,5 @@
                ippToPspsDb, 
                0, 
-               "init", 
+               "IN", 
                None)
 
Index: trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- trunk/ippToPsps/jython/stackbatch.py	(revision 32032)
+++ trunk/ippToPsps/jython/stackbatch.py	(revision 32033)
@@ -40,5 +40,5 @@
                ippToPspsDb,
                stackID,
-               "stack", 
+               "ST", 
                gpc1Db.getStackStageCmf(stackID), 
                "3PI") # TODO
@@ -92,15 +92,11 @@
            self.scratchDb.insertNewDvoExternID(self.header['SOURCEID'], self.header['IMAGEID'])
 
-    '''
-    Prints metadata to the log
-    '''
-    def printMe(self):
-
-       super(StackBatch, self).printMe()
-
+
+       # dump stuff to log
        self.logger.infoPair("Stack ID", "%d" % self.id)
        self.logger.infoPair("Stack type", "%s" % self.stackType)
        self.logger.infoPair("Skycell", "%s" % self.skycell)
        self.logger.infoPair("Filter", "%s" % self.filter)
+
 
 
