openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
48 stars 18 forks source link

Add OpenMC version check #55

Closed pshriwise closed 2 years ago

pshriwise commented 3 years ago

The tool should require a minimum version of OpenMC and report a version in compatibility before loading the application. As of now, the only indication is some error in the terminal output -- usually buried by a Qt traceback.

https://openmc.discourse.group/t/question-about-openmc-plotter/1050

shimwell commented 3 years ago

Perhaps something like this will do the trick

if openmc.__version__ < 0.12.0: raise ImportError('openmc version of 0.12.0 or newer is required')

pshriwise commented 2 years ago

This has been addressed in #42 and updated in #59.