[yt-svn] commit/yt: jzuhone: Merged in atmyers/yt (pull request #1780)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 5 11:14:52 PDT 2015
1 new commit in yt:
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