openmc-dev / plotter

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

Tally dock frozen #128

Closed SteSeg closed 3 days ago

SteSeg commented 1 year ago

Hi! I am having an issue with the tally dock WSL2. I inadvertently dragged it away from its position and now it is not possible to use it nor to drag it back in its default position. I have tried to uninstall and reinstall it in a conda environment via pip. I also tried installing it directly from source via git clone but it keeps opening with the tally dock in the wrong position.

paulromano commented 1 year ago

Have you tried deleting the plot_settings.pkl file in the directory containing the model you are plotting?

SteSeg commented 1 year ago

yes, I have. it does that for all the models I have, actually.

SteSeg commented 3 days ago

Found the solution. It is a general WSL issue that arises with several visualization tools (I just had the same problem with cubit). WSL saves the layout preferences of these tools in ~/.config/, or in similar hidden folder in the home directory, and they stay there even if the program is uninstalled and reinstalled from scratch. In the case of this plotter the path is something like ~/.config/OpenMC. It is sufficient to find that OpenMC folder in the hidden directory and convert it to .bak e.g.

mv ~/.config/OpenMC ~/.config/OpenMC.bak

Even though this issue is not caused by the plotter this info might be useful for future users.

pshriwise commented 3 days ago

Thanks @SteSeg! Definitely helpful to know this for other users. I'm going to close this for now as it doesn't turn out to require any action in this repo, but I'm definitely going to make a mental note of this for others.