Ignore:
Timestamp:
19/12/06 19:07:48 (13 years ago)
Author:
selatham
Message:

further ingest work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r1889 r1898  
    2727import commands 
    2828import string 
     29import SpaceTimeIngestFromMOLES 
    2930#import oaiClean 
    3031 
     
    178179    print "ERROR: couldn't create the minimum moles records" 
    179180    sys.exit 
     181#are there any records 
     182outdir = "./DIF2MOLES" 
     183try: 
     184    os.stat(outdir) 
     185except: 
     186    print "ERROR: couldn't create the minimum moles records for %s" %datacentre 
     187    sys.exit() 
    180188 
    181189# ingest the created discovery minimum molesrecords into eXist db. 
     
    187195 
    188196#Extract the spatiotemporal info from created moles and put in Postgres db 
    189 outdir = "./DIF2MOLES" 
    190 try: 
    191     SpaceTimeIngestFromMOLES.main(outdir) 
    192 except: 
    193     print "ERROR: SpaceTimeIngestFromMOLES failed. Carrying on to do backups" 
     197SpaceTimeIngestFromMOLES.main(outdir) 
    194198 
    195199#Make copies of discovery and oai/originals and DIF2MOLES areas to backup area for tape backups 
Note: See TracChangeset for help on using the changeset viewer.