Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and neutrinoceros committed Aug 29, 2021
1 parent 38d569f commit 5227e6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions doc/source/visualizing/callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ Applying filters on the final image

It is also possible to operate on the plotted image directly by using
one of the fixed resolution buffer filter as described in
:ref:`frb-filters`.
:ref:`frb-filters`.

.. python-script::

Expand All @@ -904,4 +904,3 @@ one of the fixed resolution buffer filter as described in
p = yt.SlicePlot(ds, 'z', 'density')
p.frb.apply_gauss_beam(sigma=30)
p.save()

4 changes: 1 addition & 3 deletions yt/visualization/fixed_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,7 @@ def __init__(
periodic=False,
filters=None,
):
super(ParticleImageBuffer, self).__init__(
data_source, radius, buff_size, antialias, periodic, filters
)
super().__init__(data_source, radius, buff_size, antialias, periodic, filters)

# set up the axis field names
axis = self.axis
Expand Down
5 changes: 4 additions & 1 deletion yt/visualization/fixed_resolution_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def apply(self, buff):
from yt.utilities.on_demand_imports import _scipy

spl = _scipy.ndimage.gaussian_filter(
buff, self.sigma, truncate=self.truncate, **self.extra_args,
buff,
self.sigma,
truncate=self.truncate,
**self.extra_args,
)
return spl

Expand Down

0 comments on commit 5227e6d

Please sign in to comment.