Skip to content

Conversation

@pshriwise
Copy link
Contributor

Description

Implements CAPI functions for the SolidRayTracePlot C++ class and a openmc.lib.SolidRayTracePlot class. With the refactor in #3776 adding create_image, the plot output can now be accessed via the Python interface in openmc.lib, making inline visualization of these images more straightforward.

image

It also allows for easier connection to other apps for interactive rendering (i.e. the plotter utility)

Screencast.from.2026-02-03.09-54-50.webm

I added a few tests in test_lib.py to ensure that we can create a SolidRayTracePlot object, produce outputs, modify the object parameters, and produce an updated image.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant