[yt-svn] commit/yt: galtay: fixed units bug in OWLS I/O
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Sep 16 12:24:00 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/66bbf028d950/
Changeset: 66bbf028d950
Branch: yt
User: galtay
Date: 2014-09-16 19:45:20
Summary: fixed units bug in OWLS I/O
Affected #: 1 file
diff -r 17a69b8ce2f0bb4cf05c98c304c1957bfad9cc42 -r 66bbf028d950fca7b523c06712c4f155bfbc15a4 yt/frontends/sph/data_structures.py
--- a/yt/frontends/sph/data_structures.py
+++ b/yt/frontends/sph/data_structures.py
@@ -24,6 +24,7 @@
import os
import types
+import yt.units
from yt.utilities.fortran_utils import read_record
from yt.utilities.logger import ytLogger as mylog
from yt.geometry.particle_geometry_handler import \
@@ -313,7 +314,8 @@
int(os.stat(self.parameter_filename)[stat.ST_CTIME])
# Set standard values
- self.current_time = hvals[self._time_readin] * sec_conversion["Gyr"]
+ self.current_time = hvals[self._time_readin] * \
+ sec_conversion["Gyr"] * yt.units.s
if self.domain_left_edge is None:
self.domain_left_edge = np.zeros(3, "float64")
self.domain_right_edge = np.ones(3, "float64") * hvals["BoxSize"]
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