Skip to content

Commit

Permalink
omicron-process: write parameters to /tmp if reattaching
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Feb 23, 2017
1 parent 4ac5527 commit e3b48a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/omicron-process
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,12 @@ logger.info("Duration = %d seconds" % abs(trigsegs))
fileformats = oconfig.get('OUTPUT', 'FORMAT')

# generate a 'master' parameters.txt file for archival purposes
if not newdag: # if not writing a new dag, dump parameters.txt files to /tmp
pardir = gettempdir()
parfile, jobfiles = oconfig.write_distributed(
pardir, nchannels=args.max_channels_per_job)
logger.debug("Created master parameters file\n%s" % parfile)
if newdag:
parfile, jobfiles = oconfig.write_distributed(
pardir, nchannels=args.max_channels_per_job)
logger.debug("Created master parameters file\n%s" % parfile)
keepfiles.append(parfile)

# create dag
Expand Down

0 comments on commit e3b48a1

Please sign in to comment.