Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An Error In Openmc Plotter #103

Open
Seamoon-Wang opened this issue Nov 14, 2022 · 7 comments
Open

An Error In Openmc Plotter #103

Seamoon-Wang opened this issue Nov 14, 2022 · 7 comments

Comments

@Seamoon-Wang
Copy link

Hi,Everyone!
There is an error when I use the Openmc-Plotter through Ubuntu & Xming.Here is the error:

File “/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/openmc_plotter/plotgui.py”, line 75, in getPlotCoords
transform = self.ax.transAxes.inverted()
AttributeError: ‘PlotImage’ object has no attribute ‘ax’. Did you mean: ‘x’?
Traceback (most recent call last):
File “/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/openmc_plotter/plotgui.py”, line 220, in mouseMoveEvent
xPlotPos, yPlotPos = self.getPlotCoords(event.pos())

If you have some advices, Please text it,Thank You!
Best Wishes!

@pshriwise
Copy link
Collaborator

pshriwise commented Nov 14, 2022

Hi @Seamoon-Wang!

Thanks for reporting this! We'll see what we can do. It sounds like you're either logging into another machine with ssh or using the Windows subsystem for Linux. Is that correct?

Either way, would you mind sending along the following information so I can work on reproducing this issue?

  • Ubuntu version (bash command: lsb_release -a)
  • OpenMC version (bash command: python -c 'import openmc; print(openmc.__version__)'
  • Matplotlib version (bash command: python -c "import matplotlib; print(matplotlib.__version__)"

@Seamoon-Wang
Copy link
Author

@pshriwise Hi!
Thanks for your reply!
Your judge is correct so much!
My Ubuntu version is "Ubuntu 20.04 LTS";
My OpenMC version is “0.13.1”
My Matplotlib version is "<module 'matplotlib._version' from '/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/matplotlib/_version.py'>"

By the way, I had to use the Openmc Plotter correctly, but I don't know why it got mistaken after the weekend.

@pshriwise
Copy link
Collaborator

Hi @Seamoon-Wang. I had a typo in my commands above. I just fixed it. Can you try getting the matplotlib version again when you have a chance?

@Seamoon-Wang
Copy link
Author

@pshriwise Hi!
It seems like that you still made a typo;)
But I have figured out the version of matplotlib:
"3.6.1"
Thanks for your reply and help !

@pshriwise
Copy link
Collaborator

Ah, indeed. Corrected. I'll try to reproduce this error soon. Thanks!

@indesperate
Copy link

indesperate commented Jan 10, 2023

@pshriwise Hi! It seems like that you still made a typo;) But I have figured out the version of matplotlib: "3.6.1" Thanks for your reply and help !

I am using wsl2 and ubuntu 22.04, before I use the openmc-plotter, I have to install some xkb library denpendences. I got the same error and tried to figure out why. I upgrade the openmc-plotter to the latest version manually using the source code. Afterward, it works!, and I figure out that there is a void blank area in my model which possibly caused the error. However, I can't reproduce the error now in the old version(that's quite strange). Anyway, upgrading may be helpful to you. (My English is poor, sorry for any mistakes)

@LukeLabrie
Copy link

In case it's helpful, I was getting a similar error to the one initially reported here. For me what solved it was deleting the plot_settings.pkl file, which seems like it saves the last state of the plotter. If this expects a statepoint with a tally that's no longer there, or perhaps some otherwise other incompatible settings, it might be an issue for the plotter

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

No branches or pull requests

4 participants