Skip to content

Commit

Permalink
Merge branch 'adding_version_check' of github.com:fusion-energy/openm…
Browse files Browse the repository at this point in the history
…c_source_plotter into adding_version_check
  • Loading branch information
shimwell committed Feb 13, 2024
2 parents a3e66a4 + 33d40eb commit f0c92ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/openmc_source_plotter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
import openmc.lib
import plotly.graph_objects

import pkg_resources
import pkg_resources

system_openmc_version = pkg_resources.parse_version(openmc.__version__)
min_openmc_version = pkg_resources.parse_version("0.14.0")
if system_openmc_version < min_openmc_version:
msg = (
"openmc_source_plotter requires openmc version 0.14.0 or above. "
f"You have openmc version {system_openmc_version} installed. "
"Please update the version of openmc installed"
"Please update the version of openmc installed"
)
raise ImportError(msg)


def sample_initial_particles(self, n_samples: int = 1000, prn_seed: int = None):

Check failure on line 25 in src/openmc_source_plotter/core.py

View workflow job for this annotation

GitHub Actions / Flake8

src/openmc_source_plotter/core.py#L25

Line too long (80 > 79 characters) (E501)

if isinstance(self, openmc.Model):
Expand Down

0 comments on commit f0c92ab

Please sign in to comment.