[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Aug 19 08:03:33 PDT 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/940b5818b005/
Changeset: 940b5818b005
Branch: yt
User: jzuhone
Date: 2013-08-19 16:44:24
Summary: Convert Athena data to 64-bits after reading
Affected #: 1 file
diff -r 697fea2926724910a0de7cbd1910f00789db46c7 -r 940b5818b00593ea5aec3f637592770c368ff0cb yt/frontends/athena/io.py
--- a/yt/frontends/athena/io.py
+++ b/yt/frontends/athena/io.py
@@ -68,9 +68,9 @@
data = data[2::3].reshape(grid_dims,order='F').copy()
f.close()
if grid.pf.field_ordering == 1:
- return data.T
+ return data.T.astype("float64")
else:
- return data
+ return data.astype("float64")
def _read_data_slice(self, grid, field, axis, coord):
sl = [slice(None), slice(None), slice(None)]
https://bitbucket.org/yt_analysis/yt/commits/622c23da642d/
Changeset: 622c23da642d
Branch: yt
User: MatthewTurk
Date: 2013-08-19 17:03:29
Summary: Merged in jzuhone/yt-athena (pull request #573)
Convert Athena data to 64-bits after reading
Affected #: 1 file
diff -r 0bd09ebbc6c1fd8fac4a7ef51c5ae154664c3658 -r 622c23da642d4f1d56f61cde3386ef60e2b4e158 yt/frontends/athena/io.py
--- a/yt/frontends/athena/io.py
+++ b/yt/frontends/athena/io.py
@@ -68,9 +68,9 @@
data = data[2::3].reshape(grid_dims,order='F').copy()
f.close()
if grid.pf.field_ordering == 1:
- return data.T
+ return data.T.astype("float64")
else:
- return data
+ return data.astype("float64")
def _read_data_slice(self, grid, field, axis, coord):
sl = [slice(None), slice(None), slice(None)]
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