Skip to content

Commit

Permalink
Merge pull request #31 from fusion-energy/working_with_SourceBase
Browse files Browse the repository at this point in the history
extending sourcebase instead of source class
  • Loading branch information
shimwell authored Aug 16, 2023
2 parents 58e8159 + eeed164 commit 82656ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/openmc_source_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def plot_source_direction(
also provided for convenience. Additional methods are plot_source_energy(),
plot_source_position(), plot_source_direction(), sample_initial_particles()
"""
openmc.Source.sample_initial_particles = sample_initial_particles
openmc.Source.plot_source_energy = plot_source_energy
openmc.Source.plot_source_position = plot_source_position
openmc.Source.plot_source_direction = plot_source_direction
openmc.SourceBase.sample_initial_particles = sample_initial_particles
openmc.SourceBase.plot_source_energy = plot_source_energy
openmc.SourceBase.plot_source_position = plot_source_position
openmc.SourceBase.plot_source_direction = plot_source_direction

0 comments on commit 82656ef

Please sign in to comment.