openmc-dev / plotter

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

separate model settings from view settings #96

Closed kkiesling closed 2 years ago

kkiesling commented 2 years ago

Right now, the state of the model view gets dumped into one large file plot_settings.pkl. It could be beneficial to separate information about the view and the model to save two different files. Basically, saving things about the view that are model independent (viewing plane, origin, plot size, whether to view by cell, mat, density, etc, possibly color, etc) as one file that can easily be reloaded and then save the information relevant to the model (mat ids, cell ids, etc) in a separate file. This would make it easier to check just the model for changes when reopening, but save some of the view settings so one doesn't have to redo those.

It's not clear how and where to exactly separate this information since right now it is all just part of the model object.