<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/5e29cd4d7853/">https://bitbucket.org/yt_analysis/yt/commits/5e29cd4d7853/</a> Changeset:   5e29cd4d7853 Branch:      yt User:        jzuhone Date:        2016-05-18 18:06:56+00:00 Summary:     Merged in ngoldbaum/yt (pull request #2180)</p>
<p>[bugfix] remove ‘io’ from enzo particle types for active particle datasets Affected #:  2 files</p>
<p>diff -r 513de336ea4bb226c8b8e32c893449b68d2af45b -r 5e29cd4d785390ca22dca3124da7f7b7f9fc5f2a yt/frontends/enzo/data_structures.py --- a/yt/frontends/enzo/data_structures.py +++ b/yt/frontends/enzo/data_structures.py @@ -444,6 +444,16 @@</p>
<pre>if "AppendActiveParticleType" in self.dataset.parameters:
    ap_fields = self._detect_active_particle_fields()
    field_list = list(set(field_list).union(ap_fields))</pre>
<p>+                if not any(f[0] == ‘io’ for f in field_list): +                    if ‘io’ in self.dataset.particle_types_raw: +                        ptypes_raw = list(self.dataset.particle_types_raw) +                        ptypes_raw.remove('io') +                        self.dataset.particle_types_raw = tuple(ptypes_raw) + +                    if ‘io’ in self.dataset.particle_types: +                        ptypes = list(self.dataset.particle_types) +                        ptypes.remove('io') +                        self.dataset.particle_types = tuple(ptypes)</p>
<pre>ptypes = self.dataset.particle_types
ptypes_raw = self.dataset.particle_types_raw
         else:</pre>
<p>diff -r 513de336ea4bb226c8b8e32c893449b68d2af45b -r 5e29cd4d785390ca22dca3124da7f7b7f9fc5f2a yt/frontends/enzo/tests/test_outputs.py --- a/yt/frontends/enzo/tests/test_outputs.py +++ b/yt/frontends/enzo/tests/test_outputs.py @@ -126,7 +126,9 @@</p>
<pre>def test_active_particle_datasets():
    two_sph = data_dir_load(two_sphere_test)
    assert 'AccretingParticle' in two_sph.particle_types_raw</pre>
<ul><li><p>assert_equal(len(two_sph.particle_unions), 0)</p></li></ul>
<p>+    assert ‘io’ not in two_sph.particle_types_raw +    assert ‘all’ in two_sph.particle_types +    assert_equal(len(two_sph.particle_unions), 1)</p>
<pre>     pfields = ['GridID', 'creation_time', 'dynamical_time',
'identifier', 'level', 'metallicity', 'particle_mass']
     pfields += ['particle_position_%s' % d for d in 'xyz']</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27BRML6Q8324iZAtjrZ-2BSWUJmlYvj0ZAfy-2Ft-2Fp7tEprSQsN5OpXPYrFqskqVoFLSCl2Fsk67euSBBYVqyg2oEOsKIfX54MvKL0ZeEGA50v5Xtgki-2BfbxTW1AVqpjPypp-2F0273I80qZHpTtPdBHkSYxglpLz0He0z-2BULWOzv6CMrDL0gI2v-2BRpoNnlXMiDWy4FA0-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>