fusion-energy / openmc_geometry_plot

Create axis slice plots of OpenMC geomtry with specified zoom
6 stars 0 forks source link

Faster plotting with parallel threads #6

Closed shimwell closed 1 year ago

shimwell commented 1 year ago

Currently we loop through the rows and columns sampling each point on a grid.

We could parallelise this loop and get a great speed up.

shimwell commented 1 year ago

This is the section of the code to refactor, I've added some notes to the comments

https://github.com/fusion-energy/openmc_geometry_plot/blob/76690b6fa1ce24e00116d492e3a6bc7bd76f3019/src/openmc_geometry_plot/core.py#L132

shimwell commented 1 year ago

tried a few options here but looks like it is not cpu bound