[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Dec 3 08:12:19 PST 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/5ed17b874c48/
Changeset: 5ed17b874c48
Branch: yt-3.0
User: MatthewTurk
Date: 2013-12-02 23:27:20
Summary: Updating Enzo particle types.
For Enzo 2.0 datasets, there is an "io" particle type.
For Enzo 3.0 datasets, we have "DarkMatter" taking the place of "io".
Affected #: 1 file
diff -r ce44c24bd28d3d79f7c2d87091902edabbf00bac -r 5ed17b874c4892ef31d05a830102f7f6db9845eb yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -842,16 +842,22 @@
else:
self.current_redshift = self.omega_lambda = self.omega_matter = \
self.hubble_constant = self.cosmological_simulation = 0.0
- self.particle_types = ["io"]
+ self.particle_types = []
if self.parameters["NumberOfParticles"] > 0 and \
"AppendActiveParticleType" in self.parameters.keys():
# If this is the case, then we know we should have a DarkMatter
# particle type, and we don't need the "io" type.
- self.particle_types = ["DarkMatter"]
self.parameters["AppendActiveParticleType"].append("DarkMatter")
+ else:
+ # We do not have an "io" type for Enzo particles if the
+ # ActiveParticle machinery is on, as we simply will ignore any of
+ # the non-DarkMatter particles in that case. However, for older
+ # datasets, we call this particle type "io".
+ self.particle_types = ["io"]
for ptype in self.parameters.get("AppendActiveParticleType", []):
self.particle_types.append(ptype)
self.particle_types = tuple(self.particle_types)
+ self.particle_types_raw = self.particle_types
if self.dimensionality == 1:
self._setup_1d()
https://bitbucket.org/yt_analysis/yt/commits/500acd8e6551/
Changeset: 500acd8e6551
Branch: yt-3.0
User: brittonsmith
Date: 2013-12-03 17:12:12
Summary: Merged in MatthewTurk/yt/yt-3.0 (pull request #660)
Updating Enzo particle types.
Affected #: 1 file
diff -r 831c3d55fb61b11b8686e6c642769ef6306e8d70 -r 500acd8e6551234e9eb8c0421e60527bc7c2753d yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -842,16 +842,22 @@
else:
self.current_redshift = self.omega_lambda = self.omega_matter = \
self.hubble_constant = self.cosmological_simulation = 0.0
- self.particle_types = ["io"]
+ self.particle_types = []
if self.parameters["NumberOfParticles"] > 0 and \
"AppendActiveParticleType" in self.parameters.keys():
# If this is the case, then we know we should have a DarkMatter
# particle type, and we don't need the "io" type.
- self.particle_types = ["DarkMatter"]
self.parameters["AppendActiveParticleType"].append("DarkMatter")
+ else:
+ # We do not have an "io" type for Enzo particles if the
+ # ActiveParticle machinery is on, as we simply will ignore any of
+ # the non-DarkMatter particles in that case. However, for older
+ # datasets, we call this particle type "io".
+ self.particle_types = ["io"]
for ptype in self.parameters.get("AppendActiveParticleType", []):
self.particle_types.append(ptype)
self.particle_types = tuple(self.particle_types)
+ self.particle_types_raw = self.particle_types
if self.dimensionality == 1:
self._setup_1d()
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