[Yt-svn] yt-commit r607 - trunk/examples
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Mon Jun 23 04:10:10 PDT 2008
Author: britton
Date: Mon Jun 23 04:10:09 2008
New Revision: 607
URL: http://yt.spacepope.org/changeset/607
Log:
New versions of examples that use the updated Clump.py.
23 June, 2008
Britton Smith
Modified:
trunk/examples/find_clumps_all_datasets.py
trunk/examples/find_clumps_dataset.py
Modified: trunk/examples/find_clumps_all_datasets.py
==============================================================================
--- trunk/examples/find_clumps_all_datasets.py (original)
+++ trunk/examples/find_clumps_all_datasets.py Mon Jun 23 04:10:09 2008
@@ -22,7 +22,8 @@
field = "Density"
radius = 0.0001
units = "pc"
-step = 10**(1./4.) # 4 steps each order of magnitude
+steps_per_dex = 4.
+step = 10**(1./steps_per_dex)
minCells = 64 # not setting anything, only for file prefix
@@ -37,7 +38,7 @@
for dataset in datasets:
print "Finding clumps in %s." % dataset
- prefix = "%s_%.1e%s_step%.2f_min%d" % (dataset,radius,units,step,minCells)
+ prefix = "%s_%.1e%s_spd%d_min%d" % (dataset,radius,units,steps_per_dex,minCells)
dataset_object = lagos.EnzoStaticOutput(dataset)
Modified: trunk/examples/find_clumps_dataset.py
==============================================================================
--- trunk/examples/find_clumps_dataset.py (original)
+++ trunk/examples/find_clumps_dataset.py Mon Jun 23 04:10:09 2008
@@ -23,12 +23,10 @@
print "Took %0.3e seconds" % (t2-t1)
f = open('%s_clump_hierarchy.txt' % prefix,'w')
- cl.write_clump_finder_parameters(f)
cl.write_clump_hierarchy(master_clump,0,f)
f.close()
f = open('%s_clumps.txt' % prefix,'w')
- cl.write_clump_finder_parameters(f)
cl.write_clumps(master_clump,0,f)
f.close()
More information about the yt-svn
mailing list