[yt-svn] commit/yt: brittonsmith: Made sure bad halo profiler output files are removed instead of trying to
Bitbucket
commits-noreply at bitbucket.org
Mon Oct 15 16:27:22 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/fbb264f8e6e8/
changeset: fbb264f8e6e8
branch: yt
user: brittonsmith
date: 2012-08-03 19:59:35
summary: Made sure bad halo profiler output files are removed instead of trying to
append to them.
affected #: 1 file
diff -r 018cc61ee15ac835460585283838f1a06461ca60 -r fbb264f8e6e827f47fc2f865908b4a5877d41816 yt/analysis_modules/halo_profiler/multi_halo_profiler.py
--- a/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
+++ b/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
@@ -606,6 +606,7 @@
if newProfile:
mylog.info("Writing halo %d" % halo['id'])
+ if os.path.exists(filename): os.remove(filename)
if filename.endswith('.h5'):
profile.write_out_h5(filename)
else:
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list