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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jan 16 08:24:52 PST 2018


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/de7584e43d80/
Changeset:   de7584e43d80
User:        cphyc
Date:        2018-01-16 12:58:48+00:00
Summary:     fix bug when passing anything else than None
Affected #:  1 file

diff -r 4bdb4891377cc76dc4aa4ada826f0fc47b9ea4f9 -r de7584e43d804ce8ef3fa2d85859d63533c0dd77 yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py
+++ b/yt/frontends/ramses/data_structures.py
@@ -470,7 +470,7 @@
         super(RAMSESIndex, self).__init__(ds, dataset_type)
 
     def _initialize_oct_handler(self):
-        if self.ds._bbox:
+        if self.ds._bbox is not None:
             cpu_list = get_cpu_list(self.dataset, self.dataset._bbox)
         else:
             cpu_list = range(self.dataset['ncpu'])


https://bitbucket.org/yt_analysis/yt/commits/5d32ce66cd07/
Changeset:   5d32ce66cd07
User:        ngoldbaum
Date:        2018-01-16 16:24:33+00:00
Summary:     Merge pull request #1670 from cphyc/bugfix-ramses

RAMSES Fix bug when passing np.array
Affected #:  1 file

diff -r 6d651dcc2ec6fd148eb2d66fd880b4541c834081 -r 5d32ce66cd07c8ef6a6506cc13e2f3d02f9335a7 yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py
+++ b/yt/frontends/ramses/data_structures.py
@@ -286,7 +286,7 @@
         super(RAMSESIndex, self).__init__(ds, dataset_type)
 
     def _initialize_oct_handler(self):
-        if self.ds._bbox:
+        if self.ds._bbox is not None:
             cpu_list = get_cpu_list(self.dataset, self.dataset._bbox)
         else:
             cpu_list = range(self.dataset['ncpu'])

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