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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Oct 5 11:14:50 PDT 2015


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/78a543dc4ce0/
Changeset:   78a543dc4ce0
Branch:      yt
User:        atmyers
Date:        2015-10-01 02:04:55+00:00
Summary:     Handle the case where you have more than 10 on-disk particle fields in the file
Affected #:  1 file

diff -r b7afd79a9820e8605a1e73c5d3d7a077cae7fe96 -r 78a543dc4ce08aac962f9c476fbb18d3f1b79fa1 yt/frontends/chombo/io.py
--- a/yt/frontends/chombo/io.py
+++ b/yt/frontends/chombo/io.py
@@ -88,7 +88,7 @@
         field_dict = {}
         for key, val in self._handle.attrs.items():
             if key.startswith('particle_'):
-                comp_number = int(re.match('particle_component_(\d)', key).groups()[0])
+                comp_number = int(re.match('particle_component_(\d+)', key).groups()[0])
                 field_dict[val.decode("ascii")] = comp_number
         self._particle_field_index = field_dict
         return self._particle_field_index


https://bitbucket.org/yt_analysis/yt/commits/cd2ee9b98823/
Changeset:   cd2ee9b98823
Branch:      yt
User:        jzuhone
Date:        2015-10-05 18:14:40+00:00
Summary:     Merged in atmyers/yt (pull request #1780)

[Bugfix] Handle the case where you have more than 10 on-disk particle fields in the file
Affected #:  1 file

diff -r e624dbb8e008780dfae3293256b67802b9463f0e -r cd2ee9b98823a3b88e0242bfdb871655e0896a0b yt/frontends/chombo/io.py
--- a/yt/frontends/chombo/io.py
+++ b/yt/frontends/chombo/io.py
@@ -88,7 +88,7 @@
         field_dict = {}
         for key, val in self._handle.attrs.items():
             if key.startswith('particle_'):
-                comp_number = int(re.match('particle_component_(\d)', key).groups()[0])
+                comp_number = int(re.match('particle_component_(\d+)', key).groups()[0])
                 field_dict[val.decode("ascii")] = comp_number
         self._particle_field_index = field_dict
         return self._particle_field_index

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