[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Oct 26 08:39:33 PDT 2016
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/68f3f2692732/
Changeset: 68f3f2692732
Branch: yt
User: ngoldbaum
Date: 2016-10-20 15:17:33+00:00
Summary: Use output_units instead of units in ProfileND._get_data
Fixes an issue spotted by John Regan and reported on the mailing list.
Affected #: 1 file
diff -r dbab762ab74b1034cd4dd071192fde5c216b7c21 -r 68f3f269273216890f551581a942d3de6da921d9 yt/data_objects/profiles.py
--- a/yt/data_objects/profiles.py
+++ b/yt/data_objects/profiles.py
@@ -239,10 +239,10 @@
if not np.any(filter): return None
arr = np.zeros((bin_fields[0].size, len(fields)), dtype="float64")
for i, field in enumerate(fields):
- units = chunk.ds.field_info[field].units
+ units = chunk.ds.field_info[field].output_units
arr[:,i] = chunk[field][filter].in_units(units)
if self.weight_field is not None:
- units = chunk.ds.field_info[self.weight_field].units
+ units = chunk.ds.field_info[self.weight_field].output_units
weight_data = chunk[self.weight_field].in_units(units)
else:
weight_data = np.ones(filter.size, dtype="float64")
https://bitbucket.org/yt_analysis/yt/commits/d1944a9457c8/
Changeset: d1944a9457c8
Branch: yt
User: ngoldbaum
Date: 2016-10-25 19:50:30+00:00
Summary: increment plotting answer number
currently test_particle_plot is storing plots based on incorrect answers
fixed by the previous commit
Affected #: 1 file
diff -r 68f3f269273216890f551581a942d3de6da921d9 -r d1944a9457c8f0e4903d466b480302c03277e0fe tests/tests.yaml
--- a/tests/tests.yaml
+++ b/tests/tests.yaml
@@ -39,7 +39,7 @@
local_owls_000:
- yt/frontends/owls/tests/test_outputs.py
- local_pw_009:
+ local_pw_010:
- yt/visualization/tests/test_plotwindow.py:test_attributes
- yt/visualization/tests/test_plotwindow.py:test_attributes_wt
- yt/visualization/tests/test_profile_plots.py:test_phase_plot_attributes
https://bitbucket.org/yt_analysis/yt/commits/d96b0f9e1767/
Changeset: d96b0f9e1767
Branch: yt
User: xarthisius
Date: 2016-10-26 15:39:05+00:00
Summary: Merged in ngoldbaum/yt (pull request #2423)
Use output_units instead of units in ProfileND._get_data
Affected #: 2 files
diff -r 9030614870c430b62d09a43cf11277551ea493c0 -r d96b0f9e17673b388fb19ce09b71dbf0512ed0ae tests/tests.yaml
--- a/tests/tests.yaml
+++ b/tests/tests.yaml
@@ -39,7 +39,7 @@
local_owls_000:
- yt/frontends/owls/tests/test_outputs.py
- local_pw_009:
+ local_pw_010:
- yt/visualization/tests/test_plotwindow.py:test_attributes
- yt/visualization/tests/test_plotwindow.py:test_attributes_wt
- yt/visualization/tests/test_profile_plots.py:test_phase_plot_attributes
diff -r 9030614870c430b62d09a43cf11277551ea493c0 -r d96b0f9e17673b388fb19ce09b71dbf0512ed0ae yt/data_objects/profiles.py
--- a/yt/data_objects/profiles.py
+++ b/yt/data_objects/profiles.py
@@ -239,10 +239,10 @@
if not np.any(filter): return None
arr = np.zeros((bin_fields[0].size, len(fields)), dtype="float64")
for i, field in enumerate(fields):
- units = chunk.ds.field_info[field].units
+ units = chunk.ds.field_info[field].output_units
arr[:,i] = chunk[field][filter].in_units(units)
if self.weight_field is not None:
- units = chunk.ds.field_info[self.weight_field].units
+ units = chunk.ds.field_info[self.weight_field].output_units
weight_data = chunk[self.weight_field].in_units(units)
else:
weight_data = np.ones(filter.size, dtype="float64")
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