[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Mar 16 09:32:37 PDT 2016
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/e781614f6bda/
Changeset: e781614f6bda
Branch: yt
User: migueldvb
Date: 2016-03-14 16:44:03+00:00
Summary: Fix typo in visualization.volume_rendering.camera
Affected #: 1 file
diff -r 81d517a65dfc0046e3eddc24c86a987bc9cf0f43 -r e781614f6bda84a58a7b6498c15e658db08a9354 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -327,7 +327,7 @@
if not isinstance(width, YTArray):
width = data_source.ds.arr(width, input_units="code_length")
if not isinstance(focus, YTArray):
- focus = self.ds.arr(focus, input_units="code_length")
+ focus = data_source.ds.arr(focus, input_units="code_length")
# We can't use the property setters yet, since they rely on attributes
# that will not be set up until the base class initializer is called.
https://bitbucket.org/yt_analysis/yt/commits/cf7dd7d835da/
Changeset: cf7dd7d835da
Branch: yt
User: migueldvb
Date: 2016-03-14 17:07:15+00:00
Summary: corrections in volume_rendering.transfer_functions docstrings
Affected #: 1 file
diff -r e781614f6bda84a58a7b6498c15e658db08a9354 -r cf7dd7d835da080374be2587785e039225f7e4c9 yt/visualization/volume_rendering/transfer_functions.py
--- a/yt/visualization/volume_rendering/transfer_functions.py
+++ b/yt/visualization/volume_rendering/transfer_functions.py
@@ -29,7 +29,7 @@
Transfer functions are defined by boundaries, bins, and the value that
governs transmission through that bin. This is scaled between 0 and 1.
- When integrating through a volume. the value through a given cell is
+ When integrating through a volume the value through a given cell is
defined by the value calculated in the transfer function.
Parameters
@@ -38,7 +38,7 @@
The min and max for the transfer function. Values below or above
these values are discarded.
nbins : int
- How many bins to calculate; in betwee, linear interpolation is
+ How many bins to calculate; in between, linear interpolation is
used, so low values are typically fine.
Notes
@@ -63,7 +63,7 @@
def add_gaussian(self, location, width, height):
r"""Add a Gaussian distribution to the transfer function.
- Typically, when rendering isocontours, a Guassian distribution is the
+ Typically, when rendering isocontours, a Gaussian distribution is the
easiest way to draw out features. The spread provides a softness.
The values are calculated as :math:`f(x) = h \exp{-(x-x_0)^2 / w}`.
@@ -239,7 +239,7 @@
class MultiVariateTransferFunction(object):
r"""This object constructs a set of field tables that allow for
- multiple field variables to control the integration through a volme.
+ multiple field variables to control the integration through a volume.
The integration through a volume typically only utilizes a single field
variable (for instance, Density) to set up and control the values
@@ -825,7 +825,7 @@
this transfer function should be used. It will create a very simple
table that merely sums along each ray. Note that the end product will
need to be scaled by the total width through which the rays were cast,
- a piece of information inacessible to the transfer function.
+ a piece of information inaccessible to the transfer function.
Parameters
----------
https://bitbucket.org/yt_analysis/yt/commits/02dd7d477817/
Changeset: 02dd7d477817
Branch: yt
User: xarthisius
Date: 2016-03-16 16:32:18+00:00
Summary: Merged in migueldvb/yt (pull request #2042)
visualization fixes
Affected #: 2 files
diff -r 8ff092a255228afab7cb3bef05cc12484a57fcd3 -r 02dd7d47781782a1e30561f1c4337111a02f7183 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -327,7 +327,7 @@
if not isinstance(width, YTArray):
width = data_source.ds.arr(width, input_units="code_length")
if not isinstance(focus, YTArray):
- focus = self.ds.arr(focus, input_units="code_length")
+ focus = data_source.ds.arr(focus, input_units="code_length")
# We can't use the property setters yet, since they rely on attributes
# that will not be set up until the base class initializer is called.
diff -r 8ff092a255228afab7cb3bef05cc12484a57fcd3 -r 02dd7d47781782a1e30561f1c4337111a02f7183 yt/visualization/volume_rendering/transfer_functions.py
--- a/yt/visualization/volume_rendering/transfer_functions.py
+++ b/yt/visualization/volume_rendering/transfer_functions.py
@@ -29,7 +29,7 @@
Transfer functions are defined by boundaries, bins, and the value that
governs transmission through that bin. This is scaled between 0 and 1.
- When integrating through a volume. the value through a given cell is
+ When integrating through a volume the value through a given cell is
defined by the value calculated in the transfer function.
Parameters
@@ -38,7 +38,7 @@
The min and max for the transfer function. Values below or above
these values are discarded.
nbins : int
- How many bins to calculate; in betwee, linear interpolation is
+ How many bins to calculate; in between, linear interpolation is
used, so low values are typically fine.
Notes
@@ -63,7 +63,7 @@
def add_gaussian(self, location, width, height):
r"""Add a Gaussian distribution to the transfer function.
- Typically, when rendering isocontours, a Guassian distribution is the
+ Typically, when rendering isocontours, a Gaussian distribution is the
easiest way to draw out features. The spread provides a softness.
The values are calculated as :math:`f(x) = h \exp{-(x-x_0)^2 / w}`.
@@ -239,7 +239,7 @@
class MultiVariateTransferFunction(object):
r"""This object constructs a set of field tables that allow for
- multiple field variables to control the integration through a volme.
+ multiple field variables to control the integration through a volume.
The integration through a volume typically only utilizes a single field
variable (for instance, Density) to set up and control the values
@@ -825,7 +825,7 @@
this transfer function should be used. It will create a very simple
table that merely sums along each ray. Note that the end product will
need to be scaled by the total width through which the rays were cast,
- a piece of information inacessible to the transfer function.
+ a piece of information inaccessible to the transfer function.
Parameters
----------
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