Skip to content

Commit

Permalink
BUG: fix a defect in OffAxisProjectionFixedResolutionBuffer._generate…
Browse files Browse the repository at this point in the history
…_image_and_mask
  • Loading branch information
neutrinoceros committed Jul 19, 2024
1 parent 151697f commit 9fa337d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt/visualization/fixed_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ def _generate_image_and_mask(self, item) -> None:
self.bounds[5] - self.bounds[4],
)
)
depth = dd.depth[0] if dd.depth is not None else None
buff = off_axis_projection(
dd.dd,
dd.center,
Expand All @@ -651,7 +652,7 @@ def _generate_image_and_mask(self, item) -> None:
no_ghost=dd.no_ghost,
interpolated=dd.interpolated,
north_vector=dd.north_vector,
depth=dd.depth,
depth=depth,
method=dd.method,
)
if self.data_source.moment == 2:
Expand Down

0 comments on commit 9fa337d

Please sign in to comment.