Skip to content

Commit

Permalink
[skip ci] Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored and github-actions[bot] committed Feb 29, 2024
1 parent b49b8a8 commit 6dd5397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/plot_rz_slices_ring_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
outline=True,
norm=LogNorm(),
slice_index=slice_index,
mirror=True
mirror=True,
)
plot.figure.savefig(f"rz_ring_source_reflected_{slice_index}.png")

Expand All @@ -87,4 +87,3 @@
slice_index=slice_index,
)
plot.figure.savefig(f"rz_ring_source_{slice_index}.png")

4 changes: 2 additions & 2 deletions src/openmc_cylindrical_mesh_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def plot_mesh_tally_rz_slice(
score,
slice_index,
)

if mirror:
data_reflected = np.fliplr(data)
data = np.concatenate((data_reflected, data), axis=1)
Expand Down Expand Up @@ -309,7 +309,7 @@ def plot_mesh_tally_rz_slice(
# Combine R, G, B values into a single int
rgb = (img * 256).astype(int)
image_value = (rgb[..., 0] << 16) + (rgb[..., 1] << 8) + (rgb[..., 2])

if mirror:
image_value_reflected = np.fliplr(image_value)
image_value = np.concatenate((image_value_reflected, image_value), axis=1)
Expand Down

0 comments on commit 6dd5397

Please sign in to comment.