Skip to content

Commit

Permalink
Fix signature of frb
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Jul 7, 2018
1 parent 74292b9 commit 8935c1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions yt/visualization/fixed_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,16 +497,15 @@ class CylindricalFixedResolutionBuffer(FixedResolutionBuffer):
:class:`yt.visualization.fixed_resolution.FixedResolutionBuffer`
that supports non-aligned input data objects, primarily cutting planes.
"""
def __init__(self, data_source, radius, buff_size, antialias = True,
plot_window = None) :
def __init__(self, data_source, radius, buff_size, antialias = True, filters = None) :

self.data_source = data_source
self.ds = data_source.ds
self.radius = radius
self.buff_size = buff_size
self.antialias = antialias
self.data = {}
self.plot_window = plot_window
self._filters = filters if filters else []

ds = getattr(data_source, "ds", None)
if ds is not None:
Expand Down Expand Up @@ -557,9 +556,9 @@ class ParticleImageBuffer(FixedResolutionBuffer):
buffer.
"""
def __init__(self, data_source, radius, buff_size, antialias = True):
def __init__(self, data_source, radius, buff_size, antialias = True, filters = None):
self.data = {}
super(ParticleImageBuffer, self).__init__(data_source, radius, buff_size, antialias)
super(ParticleImageBuffer, self).__init__(data_source, radius, buff_size, antialias, filters)

# set up the axis field names
axis = self.axis
Expand Down

0 comments on commit 8935c1b

Please sign in to comment.