Skip to content

Commit

Permalink
fix destination directory with new merging implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic committed Mar 21, 2016
1 parent 26c8207 commit 93da2e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions python/anelastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,17 +913,19 @@ def writeoutError(fobj,targetpath):
self.datfileList.remove(datfile)
if not foundDat and errEntry<self.totalEvent:
success = False
destinationpath = os.path.join(self.outdir,outfile.run,outfile.stream,outfile.name+".dat")
destinationpath = os.path.join(self.outdir,outfile.run,outfile.stream,"data",outfile.name+".dat")
#destinationpath = os.path.join(self.outdir,outfile.run,outfile.stream,outfile.name+".dat")
try:
try:
os.stat(os.path.join(self.tempdir,outfile.run,outfile.name+".dat")).st_size
self.logger.warning('file exists, but not previously detected? '+os.path.join(self.tempdir,outfile.run,outfile.name+".dat"))
except:
pass
success = outfile.mergeDatInputs(destinationpath,conf.output_adler32)
#os.rename(destinationpath_tmp,destinationpath)
outfile.writeout()
#test
os.stat(os.path.join(self.outdir,outfile.run,outfile.stream,outfile.name+".dat")).st_size
os.stat(destinationpath).st_size
except Exception as ex:
self.logger.fatal("Failed micro-merge: "+destinationpath)
self.logger.exception(ex)
Expand Down
2 changes: 1 addition & 1 deletion scripts/hltdrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ cd $TOPDIR
cat > hltd.spec <<EOF
Name: hltd
Version: 1.9.3
Release: 2
Release: 3
Summary: hlt daemon
License: gpl
Group: DAQ
Expand Down

0 comments on commit 93da2e8

Please sign in to comment.