[yt-svn] commit/yt: ngoldbaum: [tipsy] Correct auxiliary file footer skip offset to account for read in data
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Nov 6 12:18:43 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/1a290fab65e4/
Changeset: 1a290fab65e4
Branch: yt
User: ngoldbaum
Date: 2016-10-31 19:06:41+00:00
Summary: [tipsy] Correct auxiliary file footer skip offset to account for read in data
Affected #: 1 file
diff -r 334cceb2c6e197acf1a8c7f273ee9dd0bd592f58 -r 1a290fab65e430186f2c6e80ae19ae6084402dc4 yt/frontends/tipsy/io.py
--- a/yt/frontends/tipsy/io.py
+++ b/yt/frontends/tipsy/io.py
@@ -165,7 +165,7 @@
aux_fh[afield].seek(0, os.SEEK_SET)
sh = aux_fields_offsets[afield][ptype][0] + total
sf = aux_fields_offsets[afield][ptype][1] + \
- tp[ptype] - count
+ tp[ptype] - count - total
if tp[ptype] > 0:
aux = np.genfromtxt(
aux_fh[afield], skip_header=sh,
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