[yt-svn] commit/yt-3.0: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Mar 19 12:04:35 PDT 2013
3 new commits in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/a8bec4f5e6a3/
changeset: a8bec4f5e6a3
branch: yt-3.0
user: ngoldbaum
date: 2013-03-19 19:55:23
summary: Adding support for enzo-3.0 datasets that contain no active particles.
affected #: 1 file
diff -r e4852e262442f29c5b2b30b8c5b8d38a2750ebef -r a8bec4f5e6a346f184da32123b54647d1c07927b yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -288,7 +288,7 @@
if self.parameter_file.parameters["VersionNumber"] > 2.0:
active_particles = True
nap = {}
- for type in self.parameters["AppendActiveParticleType"]:
+ for type in self.parameters.get("AppendActiveParticleType", []):
nap[type] = []
else:
active_particles = False
@@ -309,7 +309,7 @@
if active_particles:
ptypes = _next_token_line("PresentParticleTypes", f)
counts = [int(c) for c in _next_token_line("ParticleTypeCounts", f)]
- for ptype in self.parameters["AppendActiveParticleType"]:
+ for ptype in self.parameters.get("AppendActiveParticleType", []):
if ptype in ptypes:
nap[ptype].append(counts[ptypes.index(ptype)])
else:
https://bitbucket.org/yt_analysis/yt-3.0/commits/ad73d0642064/
changeset: ad73d0642064
branch: yt-3.0
user: ngoldbaum
date: 2013-03-19 19:55:39
summary: Adding some untracked autogenerated C files to hgignore.
affected #: 1 file
diff -r a8bec4f5e6a346f184da32123b54647d1c07927b -r ad73d0642064f1147c67dfec7d5d71d76ffefdcd .hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -5,11 +5,16 @@
hdf5.cfg
png.cfg
yt_updater.log
+yt/frontends/artio/_artio_caller.c
yt/frontends/ramses/_ramses_reader.cpp
+yt/frontends/sph/smoothing_kernel.c
+yt/geometry/oct_container.c
+yt/geometry/selection_routines.c
yt/utilities/amr_utils.c
yt/utilities/kdtree/forthonf2c.h
yt/utilities/libconfig_wrapper.c
yt/utilities/spatial/ckdtree.c
+yt/utilities/lib/alt_ray_tracers.c
yt/utilities/lib/CICDeposit.c
yt/utilities/lib/ContourFinding.c
yt/utilities/lib/DepthFirstOctree.c
https://bitbucket.org/yt_analysis/yt-3.0/commits/3f43eabe2b7c/
changeset: 3f43eabe2b7c
branch: yt-3.0
user: MatthewTurk
date: 2013-03-19 20:04:30
summary: Merged in ngoldbaum/yt-3.0 (pull request #23)
Adding support for enzo-3.0 datasets that contain no active particles.
affected #: 2 files
diff -r b56fb77569764f6f5fd8dc1416b6b182170345fe -r 3f43eabe2b7c0fb88452542a9ff867830564540c .hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -5,11 +5,16 @@
hdf5.cfg
png.cfg
yt_updater.log
+yt/frontends/artio/_artio_caller.c
yt/frontends/ramses/_ramses_reader.cpp
+yt/frontends/sph/smoothing_kernel.c
+yt/geometry/oct_container.c
+yt/geometry/selection_routines.c
yt/utilities/amr_utils.c
yt/utilities/kdtree/forthonf2c.h
yt/utilities/libconfig_wrapper.c
yt/utilities/spatial/ckdtree.c
+yt/utilities/lib/alt_ray_tracers.c
yt/utilities/lib/CICDeposit.c
yt/utilities/lib/ContourFinding.c
yt/utilities/lib/DepthFirstOctree.c
diff -r b56fb77569764f6f5fd8dc1416b6b182170345fe -r 3f43eabe2b7c0fb88452542a9ff867830564540c yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -288,7 +288,7 @@
if self.parameter_file.parameters["VersionNumber"] > 2.0:
active_particles = True
nap = {}
- for type in self.parameters["AppendActiveParticleType"]:
+ for type in self.parameters.get("AppendActiveParticleType", []):
nap[type] = []
else:
active_particles = False
@@ -309,7 +309,7 @@
if active_particles:
ptypes = _next_token_line("PresentParticleTypes", f)
counts = [int(c) for c in _next_token_line("ParticleTypeCounts", f)]
- for ptype in self.parameters["AppendActiveParticleType"]:
+ for ptype in self.parameters.get("AppendActiveParticleType", []):
if ptype in ptypes:
nap[ptype].append(counts[ptypes.index(ptype)])
else:
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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