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 Jul 29, 2022
1 parent 3bb75dd commit 1dc4411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions examples/example_plot_two_source_energies.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
my_dd_source.energy = openmc.stats.Muir(e0=2080000.0, m_rat=2.0, kt=20000.0)

# plots the particle energy distribution
plot = osp.plot_source_energy(
source=[my_dt_source, my_dd_source],
n_samples=10000
)
plot = osp.plot_source_energy(source=[my_dt_source, my_dd_source], n_samples=10000)

plot.show()
4 changes: 1 addition & 3 deletions openmc_source_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def plot_source_energy(
e_values = [particle.E for particle in data]

# Calculate pdf for source energies
probability, bin_edges = np.histogram(
e_values, bins=energy_bins, density=True
)
probability, bin_edges = np.histogram(e_values, bins=energy_bins, density=True)

# Plot source energy histogram
figure.add_trace(
Expand Down

0 comments on commit 1dc4411

Please sign in to comment.