diff --git a/yt/visualization/fixed_resolution.py b/yt/visualization/fixed_resolution.py index b4b551e551b..80e5d597e4d 100644 --- a/yt/visualization/fixed_resolution.py +++ b/yt/visualization/fixed_resolution.py @@ -497,8 +497,7 @@ 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 @@ -506,7 +505,7 @@ def __init__(self, data_source, radius, buff_size, antialias = True, 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: @@ -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