[yt-svn] commit/yt: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Nov 28 17:43:51 PST 2017


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/e9e57bd9cd36/
Changeset:   e9e57bd9cd36
User:        atmyers
Date:        2017-11-14 00:09:51+00:00
Summary:     populate the _particle_type_counts dictionary for amrex datasets
Affected #:  1 file

diff -r 76d8412d2fed58cb0a7ce232849519fe3177c7bb -r e9e57bd9cd36b117fc3f38fcf928fb32b9d5d91b yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -566,6 +566,11 @@
                                                         is_checkpoint,
                                                         extra_field_names)
 
+        num_parts = self.particle_headers[directory_name].num_particles
+        if not hasattr(self.ds, "_particle_type_counts") or self.ds._particle_type_counts is None:
+            self.ds._particle_type_counts = {}
+        self.ds._particle_type_counts[directory_name] = num_parts
+
         base_particle_fn = self.ds.output_dir + '/' + directory_name + "/Level_%d/DATA_%.4d"
 
         gid = 0


https://bitbucket.org/yt_analysis/yt/commits/c5a75256ec55/
Changeset:   c5a75256ec55
User:        atmyers
Date:        2017-11-14 00:34:39+00:00
Summary:     only check if the dict is None here - it will always exist.
Affected #:  1 file

diff -r e9e57bd9cd36b117fc3f38fcf928fb32b9d5d91b -r c5a75256ec556d6aaa616dc6fa4dcf3ac480b895 yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -567,7 +567,7 @@
                                                         extra_field_names)
 
         num_parts = self.particle_headers[directory_name].num_particles
-        if not hasattr(self.ds, "_particle_type_counts") or self.ds._particle_type_counts is None:
+        if self.ds._particle_type_counts is None:
             self.ds._particle_type_counts = {}
         self.ds._particle_type_counts[directory_name] = num_parts
 


https://bitbucket.org/yt_analysis/yt/commits/690b9720ab25/
Changeset:   690b9720ab25
User:        atmyers
Date:        2017-11-29 01:42:41+00:00
Summary:     Merge pull request #1621 from atmyers/particle_count_bugfix

[BUGFIX] Populate the _particle_type_counts dictionary for amrex datasets
Affected #:  1 file

diff -r a6dac60ab12d8064aad1c5adda6dd54e604c6c98 -r 690b9720ab254de48114b3abd1fc91925c6b8872 yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -566,6 +566,11 @@
                                                         is_checkpoint,
                                                         extra_field_names)
 
+        num_parts = self.particle_headers[directory_name].num_particles
+        if self.ds._particle_type_counts is None:
+            self.ds._particle_type_counts = {}
+        self.ds._particle_type_counts[directory_name] = num_parts
+
         base_particle_fn = self.ds.output_dir + '/' + directory_name + "/Level_%d/DATA_%.4d"
 
         gid = 0

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